You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Not all options/flags are documented in the wiki #292
AutoFixSuppressionComment (note: due to how options are passed to JavaC plugins and how JavaC parses them, you cannot put spaces in the value; this severely limits the usefulness of this option; this doesn't apply to Bazel though)
Btw, on master, since version 0.6.6, two options have been added:
CheckOptionalEmptiness
CheckOptionalEmptinessCustomClasses
the former being already documented in the wiki (but ignored by the current version, without any error or warning, mostly due to how flags work in Error Prone)
Fwiw you may want to migrate the documentation from the wiki to a markdown file in the repo, that way it can be kept in sync with the code, and looking at the file for the last version's tag would document that version. The downside is that you cannot fix/improve the documentation after the version has been tagged, but documentation can be part of the same PR that adds the option so is part of the code review. Just a suggestion. YMMV.
I definitely like the approach of making docs part of the PR / release tagged commit / etc. We aren't doing it for 0.7.0, since I am right now cutting that release, but it's definitely worth doing in the future. Will leave this Issue open to figure that out.
Fwiw, the problem with AutoFixSuppressionComment is not only Gradle, but also Maven (unless you're still using the plexus-compiler-javac-errorprone, which doesn't work with JDK10+ and has some classloading issues), Ant, or command-line JavaC; anywhere you're using Error Prone through -Xplugin:ErrorProne, as described in https://errorprone.info/docs/installation, rather than deeper integration into the build system through the (now deprecated BTW) com.google.errorprone.ErrorProneCompiler (like in Buck or Pants afaict, or plexus-compiler-javac-errorprone) or equivalent (like in Bazel).
Revisiting this after a few years. Good news: all 5 flags from the original report are now documented (AssertsEnabled, ExhaustiveOverride, CastToNonNullMethod, AutoFixSuppressionComment, and AcknowledgeAndroidRecent from the follow-up).
Diffing the current ErrorProneCLIFlagsConfig.java against the wiki turned up a newer, narrower gap — 8 flags added since without wiki docs:
Also found the reverse: LegacyAnnotationLocations is still documented in the wiki but was removed from source in #1640 — and a small typo (Nullaway: vs NullAway:) in the existing AcknowledgeAndroidRecent entry.
Before I draft wiki content: are the three SerializeFix* flags (feeding the separate nullaway-annotator tool) meant to stay undocumented here, or should they get a brief mention too? Happy to open a PR against msridhar/NullAway-wiki once scope is confirmed.
I was planning to discuss these in the next release notes. Maybe it'll be easier to document them after we cut the release?
Also found the reverse: LegacyAnnotationLocations is still documented in the wiki but was removed from source in #1640 — and a small typo (Nullaway: vs NullAway:) in the existing AcknowledgeAndroidRecent entry.
Yeah, I was going to document removal of this flag in the next release notes. Maybe we can document as "removed in NullAway 0.14.0"?
Before I draft wiki content: are the three SerializeFix* flags (feeding the separate nullaway-annotator tool) meant to stay undocumented here, or should they get a brief mention too? Happy to open a PR against msridhar/NullAway-wiki once scope is confirmed.
I think we can leave the SerializeFix* flags as undocumented; regular users shouldn't need to set them.
FYI @dbwiddis I went ahead and documented the flags you pointed out. Thanks for digging in! I'm going to go ahead and close this issue since I think we're currently in a state where all the flags that we want to document are now documented. We can open a new issue if we become inconsistent again in the future.
Activity
lazaroclapp commentedon Mar 29, 2019
Hey @tbroyer, thanks for filing this issue!
I definitely like the approach of making docs part of the PR / release tagged commit / etc. We aren't doing it for
0.7.0, since I am right now cutting that release, but it's definitely worth doing in the future. Will leave this Issue open to figure that out.Meanwhile, let me go ahead and update the Wiki :)
lazaroclapp commentedon Mar 29, 2019
All options above are now documented either in the Configuration or Suppressing Warnings sections, as appropriate.
tbroyer commentedon Mar 30, 2019
Fwiw, the problem with
AutoFixSuppressionCommentis not only Gradle, but also Maven (unless you're still using theplexus-compiler-javac-errorprone, which doesn't work with JDK10+ and has some classloading issues), Ant, or command-line JavaC; anywhere you're using Error Prone through-Xplugin:ErrorProne, as described in https://errorprone.info/docs/installation, rather than deeper integration into the build system through the (now deprecated BTW)com.google.errorprone.ErrorProneCompiler(like in Buck or Pants afaict, orplexus-compiler-javac-errorprone) or equivalent (like in Bazel).tbroyer commentedon Oct 16, 2019
AFAICT,
AcknowledgeAndroidRecenthas not been added to the wiki.msridhar commentedon Oct 18, 2019
Thanks for catching this @tbroyer. I added some documentation here:
https://github.com/uber/NullAway/wiki/Configuration#acknowledge-android-recent-nullability-annotations
dbwiddis commentedon Aug 11, 2026
Revisiting this after a few years. Good news: all 5 flags from the original report are now documented (
AssertsEnabled,ExhaustiveOverride,CastToNonNullMethod,AutoFixSuppressionComment, andAcknowledgeAndroidRecentfrom the follow-up).Diffing the current
ErrorProneCLIFlagsConfig.javaagainst the wiki turned up a newer, narrower gap — 8 flags added since without wiki docs:ErrorURL(since Add ErrorURL option #220)JarInferEnabledHandleWildcardGenerics(Enable HandleWildcardGenerics flag when building NullAway #1586)JSpecifyExperimental(Add JSpecifyExperimental configuration flag #1648)JSpecifyJDKModels(Enable JSpecify JDK models (under a flag) #1641)SerializeFixMetadata/SerializeFixMetadataVersion/FixSerializationConfigPathAlso found the reverse:
LegacyAnnotationLocationsis still documented in the wiki but was removed from source in #1640 — and a small typo (Nullaway:vsNullAway:) in the existingAcknowledgeAndroidRecententry.Before I draft wiki content: are the three
SerializeFix*flags (feeding the separatenullaway-annotatortool) meant to stay undocumented here, or should they get a brief mention too? Happy to open a PR againstmsridhar/NullAway-wikionce scope is confirmed.msridhar commentedon Aug 12, 2026
Thanks for digging in here @dbwiddis!
This should definitely be documented.
We should document this one as well.
I was planning to discuss these in the next release notes. Maybe it'll be easier to document them after we cut the release?
Yeah, I was going to document removal of this flag in the next release notes. Maybe we can document as "removed in NullAway 0.14.0"?
I think we can leave the
SerializeFix*flags as undocumented; regular users shouldn't need to set them.Thanks again!
msridhar commentedon Aug 21, 2026
FYI @dbwiddis I went ahead and documented the flags you pointed out. Thanks for digging in! I'm going to go ahead and close this issue since I think we're currently in a state where all the flags that we want to document are now documented. We can open a new issue if we become inconsistent again in the future.