-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PICO annotation #106
base: master
Are you sure you want to change the base?
Add PICO annotation #106
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to add the new qualifier package to module-info.java.
@@ -162,7 +165,8 @@ | |||
"EnsuresNonNullIf(expression={\"list()\",\"list(FilenameFilter)\",\"listFiles()\",\"listFiles(FilenameFilter)\",\"listFiles(FileFilter)\"}, result=true)\"" | |||
}) | |||
@AnnotatedFor({"index", "initialization", "interning", "lock", "nullness"}) | |||
public class File | |||
@DefaultQualifierForUse(Readonly.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should all files have this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still thinking. At least for most usage in @RDM
class, this make sense because we need to make the most method can be used for both @Immutable
and @Mutable
class like getters. Some methods can only be used by @Mutable
receiver like add(...)
.
I am wondering should we default the defaultqualifierforuse to RDM for RDM class?
Done, thanks! |
# Conflicts: # src/java.base/share/classes/java/util/Objects.java
No description provided.