-
Notifications
You must be signed in to change notification settings - Fork 299
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
Make AbstractConfig collection fields explicity Immutable #601
Make AbstractConfig collection fields explicity Immutable #601
Conversation
/** | ||
* if true, {@link #fromAnnotatedPackage(Symbol.ClassSymbol)} will return false for any class | ||
* annotated with {@link javax.annotation.Generated} | ||
*/ |
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.
No other such protected field has docs and besides these are stale (#fromAnnotatedPackage
for this class no longer exists, it was never only that annotation, and after #600 this isn't even only [simple-name] @Generated
), so...
@@ -296,15 +292,15 @@ public boolean isContractAnnotation(String annotationName) { | |||
return contractAnnotations.contains(annotationName); | |||
} | |||
|
|||
protected Set<MethodClassAndName> getKnownInitializers(Set<String> qualifiedNames) { | |||
protected ImmutableSet<MethodClassAndName> getKnownInitializers(Set<String> qualifiedNames) { |
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.
Note this is called only once during config loading in ErrorProneCLIFlagsConfig
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.
👍
Pull Request Test Coverage Report for Build #954
💛 - Coveralls |
This is a re-do, from scratch of a very stale PR.
7df44b4
to
9fbea32
Compare
Follow up to #600. These values are already
ImmutableSet
at runtime(except one which was still used strictly as read-only). This change just
makes it explicit.