Skip to content

History

Revisions

  • Say what a report carries, not what it equals Both checker sections introduced a quoted diagnostic with "is reported as", which claims the report is that text and nothing else. Error Prone wraps every diagnostic as `[CheckName] message` and appends the check's `linkUrl()`, so the claim was never exact, and it would have stayed inexact after the doubled `[RequireExplicitNullMarking]` prefix is fixed. The quoted text itself is the message body, which is a substring of the emitted diagnostic before and after that fix, so it stays correct. Assisted-by: Claude Code (claude-opus-5)

    @vlsi vlsi committed Sep 5, 2026
    8743f3a
  • Correct claims five reviews found in the recent wiki pages Five reviews compared every page against the code. Thirteen of their findings were claims a reader could act on and get wrong. Four are about what an option does. `AcknowledgeRestrictiveAnnotations` was documented as defaulting to `false`, but `acknowledgeRestrictive Annotations()` returns `isAcknowledgeRestrictive || jspecifyMode`, so it is on for every reader in JSpecify mode. `ExcludedClasses` and `UnannotatedClasses` were called lists of class names, where `isExcludedClass` and `isUnannotatedClass` both match with `String.startsWith`, so they are prefixes. `SuggestSuppressions` was said to insert `@SuppressWarnings("NullAway")`, where `ErrorBuilder` inserts `@SuppressWarnings("NullAway.Init")` for a field-initialization error. `KnownInitializers` was said to default to 22 Android methods plus others, where 22 is the whole set: 20 Android, one annotation-processing method, and one Flink method. Three are about when a diagnostic appears. The wildcard-annotation error needs `HandleWildcardGenerics` as well as JSpecify mode, which `NullAway.matchAnnotatedType` requires and the entry did not mention. The `castToNonNull` error also fires for methods a library model registers, which is why the message carries an argument position, and it is suppressed inside constructors and initializers. The conditional- expression error compares each branch against the type the context requires, not the branches against each other, so the entry forbade `@Nullable Integer[] t = c ? new Integer[0] : new @Nullable Integer[0]`, which `JSpecifyArrayTests` expects to compile. Two are version claims. Compatibility said 0.13.0 raised the Error Prone floor from 2.10.0; 0.11.0 had already raised it to 2.14.0, and both later bumps landed inside 0.13.0. It also cited NullAway's own test suite as evidence, which no reader of that page can act on, in place of Error Prone's release notes. The rest are scope: `@NullUnmarked` has no `MODULE` target, so a module can only be `@NullMarked`; `JSpecifyExperimental` turns on three features, not the two Adopting NullAway listed; and Error-Messages presented the built-in initializer annotations as two where the record lists seven. Also drop the rationale the reviews could not source, in particular the claim that reporting only top-level classes follows from nested classes being covered, and the claim that the local-variable option is on so that the check reports every location the specification lists, which the check's own documented limits deny. Give Compatibility the table its five sections of recurring version numbers were asking for, cut the second full copy of the patch-mode version gap so the record has one home, and add the `NullAway.Optional` suppression to the page that lists the others. Assisted-by: Claude Code (claude-opus-5)

    @vlsi vlsi committed Sep 5, 2026
    2cb851f
  • Give every configuration flag its type, default, and failure mode An entry named a flag and described what it does, and left the reader to infer the rest. Whether a flag took a boolean, a list, or one name was guessable from the surrounding prose at best; the default was stated for nine of the thirty-nine and omitted for the rest, including every flag whose default is a built-in list. A configuration that NullAway refuses outright was described, where it was described at all, as a requirement rather than as the message the build stops with. State the type and the default above each entry's prose, read out of `ErrorProneCLIFlagsConfig`: the built-in initializer annotations, the fifteen excluded field annotations, the twenty-two known initializers, the error URL, the serialization format version, and `false` for each of the twenty booleans. Where the header now carries the default, drop the sentence that repeated it. Quote the five configurations that fail as NullAway loads, in the entry for each flag involved: `AnnotatedPackages` with or without `OnlyNullMarked`, `AcknowledgeAndroidRecent` without `AcknowledgeRestrictiveAnnotations`, `JSpecifyJDKModels` outside JSpecify mode, a multi-line `AutoFixSuppressionComment`, and `SerializeFixMetadata` without a config path or alongside `SuggestSuppressions`. State each interaction in both entries rather than one. `JSpecifyMode` now names the four options that apply only in that mode; `AcknowledgeRestrictiveAnnotations` names the Android option built on it; `CastToNonNullMethod` records that `SuggestSuppressions` inserts a cast in place of a suppression where `ErrorBuilder` can, and that the check it turns on has an entry on the error page. Fix two claims a reader could act on: the Android entry spelled the namespace `-XepOpt:Nullaway:`, which Error Prone does not accept, and the custom-initializer entry named two JUnit annotations where the built-in list holds seven. Drop `currently` from the four sentences that dated themselves. Assisted-by: Claude Code (claude-opus-5)

    @vlsi vlsi committed Sep 5, 2026
    6dd2d21
  • Add compatibility and adoption pages, and index the configuration flags Three questions had no page. Which JDK and Error Prone versions a NullAway version needs was answered in three places at once, none of them a reference: the README carried JDK 17 and Error Prone 2.36.0, JSpecify Support the javac requirement for type-use annotations in bytecode, and Suppressing Warnings the Error Prone range in which patch mode does not work. How to switch an existing codebase on, and how to move from AnnotatedPackages to OnlyNullMarked or into JSpecify mode, was answered nowhere. Add Compatibility, which states the requirements and the combinations that fail, including that Error Prone 2.43.0 dropped JDK 17, so a build still on JDK 17 stops at 2.42.0. Add Adopting NullAway, which orders the steps and links the reference entry for each. Both link to the pages that own the detail rather than restating it, and both are linked from Home and the sidebar. In Configuration, document the five flags the reference did not list. SuggestSuppressions and AutoFixSuppressionComment appeared only on Suppressing Warnings; SerializeFixMetadata, FixSerializationConfigPath and SerializeFixMetadataVersion appeared nowhere, and now say that they serialize for NullAwayAnnotator. Add an alphabetical index of all 41 flags above the entries, generated from the entries themselves, so that a reader holding a flag name can reach its section without scrolling past 33 headings. Also correct two claims a reader could act on. Supported Annotations listed the non-null simple names as `@NonNull`, `@NonNull` and `@NotNull`; Nullness.isNonNullAnnotation accepts `@NonNull`, `@Nonnull` and `@NotNull`. Suppressing Warnings spelled the suppression-comment flag `--Xep:NullAway:AutoFixSuppressionComment`, which is neither the right prefix nor the right namespace; it is `-XepOpt:NullAway:AutoFixSuppressionComment`. Give the remaining untagged code fences their language. Assisted-by: Claude Code (claude-opus-5)

    @vlsi vlsi committed Sep 5, 2026
    8d0240a
  • Document the twelve missing error messages, and add wiki navigation `ErrorMessage.MessageTypes` declares 29 kinds of diagnostic, of which Error-Messages.md explained sixteen. A reader who searched for the text of a JSpecify-mode error found nothing: none of the generics errors had an entry, and neither did the array write, the `switch` selector, the `Optional.get()` check, the `castToNonNull` check, or the annotation on an enclosing type. Add an entry for each, in the shape the page already uses, quoting the emitted text and building the example from the test that covers it. The five generic pseudo-assignment errors share one entry, since they share one message; the four override forms share another. Fix the one table of contents link that lost its `#` and so pointed at a file. Add `_Sidebar.md`, which GitHub renders beside every page. Readers arrive at a heading from a search engine, and until now a page carried no way to reach the rest of the wiki. Rewrite Home.md, which listed the nine pages in no particular order and never mentioned the README, the only place installation is documented. Group the pages by what the reader is doing, and say what each one answers. Assisted-by: Claude Code (claude-opus-5)

    @vlsi vlsi committed Sep 5, 2026
    570947d
  • Drop unsupported claims from the JSpecify support page The previous commit added four sentences whose claims trace to neither the code nor the linked contracts. It said `RequireExplicitNullMarking` matches only top-level classes *because* an annotation on one covers the nested classes, and that NullAway checks the javac configuration "at the start of compilation"; the checker states no such reason and the check runs when the first class is matched. It also derived the encouragement to enable `JSpecifyExperimental` from the plan to enable it by default, where the 0.14.0 notes state the two separately. State each of these as a plain fact instead. Make the flag rather than the support be what is off by default, and say `@Nullable String[] x` annotates the element type, which holds in every mode, rather than that it marks the elements, which NullAway checks only in JSpecify mode. Assisted-by: Claude Code (claude-opus-5)

    @vlsi vlsi committed Sep 5, 2026
    4e08190
  • Update the JSpecify support page to match current behavior The page described JSpecify mode as it stood before 0.14.0. It listed the JDK nullness models and wildcard types as outstanding features, though 0.14.0 ships both behind `JSpecifyExperimental`, which the page never mentioned. `RequireExplicitNullMarking` was described as checking every class, where it matches only top-level classes. The type-use placement section still said the requirement holds "by default", though `LegacyAnnotationLocations` was removed in 0.14.0. Rewrite each section to open with its claim rather than with history, and quote the three diagnostics the checks emit, so that a user who searches for the message text lands here: the `IllegalStateException` for an incompatible javac, the `RequireExplicitNullMarking` summary, and the `A nullness annotation ... has no meaning under JSpecify.` report. Add what the page did not carry: `-Xep:<check>:WARN` as the way to turn either checker on, that both report nothing at their default SUGGESTION severity, and, for `JSpecifyUnrecognizedAnnotationLocation`, its suggested fixes, that it reads only JSpecify's own annotations, and that its flag sits in its own namespace rather than NullAway's. Headings are unchanged, since `RequireExplicitNullMarking.linkUrl()` and the JSpecify-mode javac error both link to anchors on this page. Assisted-by: Claude Code (claude-opus-5)

    @vlsi vlsi committed Sep 5, 2026
    8e2eb0b
  • Updated JSpecify Support (markdown)

    @msridhar msridhar committed Sep 4, 2026
    eb24298
  • Updated Configuration (markdown)

    @msridhar msridhar committed Aug 22, 2026
    92d7c28
  • Updated Configuration (markdown)

    @msridhar msridhar committed Aug 21, 2026
    119b418
  • Updated Configuration (markdown)

    @msridhar msridhar committed Aug 21, 2026
    cd54bdb
  • add docs for several config options

    @msridhar msridhar committed Aug 21, 2026
    934dd87
  • Updated JSpecify Support (markdown)

    @msridhar msridhar committed Aug 21, 2026
    875d334
  • Updated Configuration (markdown)

    @msridhar msridhar committed Aug 14, 2026
    1f0bd9d
  • Update wording (https://github.com/uber/NullAway/issues/1700)

    @msridhar msridhar committed Aug 14, 2026
    d3783da
  • docs: document deliberate unsoundness (#3) * docs: document deliberate unsoundness * edits --------- Co-authored-by: Manu Sridharan <msridhar@gmail.com>

    @Andrei-hub11 Andrei-hub11 committed Jun 23, 2026
    0215a30
  • Updated JSpecify Support (markdown)

    @msridhar msridhar committed May 3, 2026
    4a62236
  • Updated Supported Annotations (markdown)

    @msridhar msridhar committed Mar 26, 2026
    f54f50b
  • Updated Supported Annotations (markdown)

    @msridhar msridhar committed Dec 1, 2025
    4136071
  • Updated Configuration (markdown)

    @msridhar msridhar committed Nov 27, 2025
    a8d8de8
  • Updated JSpecify Support (markdown)

    @msridhar msridhar committed Nov 27, 2025
    e73a16b
  • Updated Supported Annotations (markdown)

    @msridhar msridhar committed Nov 18, 2025
    fa64ddc
  • Updated JSpecify Support (markdown)

    @msridhar msridhar committed Oct 28, 2025
    02bd0b9
  • Updated JSpecify Support (markdown)

    @msridhar msridhar committed Oct 28, 2025
    722199f
  • Updated JSpecify Support (markdown)

    @msridhar msridhar committed Oct 24, 2025
    851f6cc
  • Updated JSpecify Support (markdown)

    @msridhar msridhar committed Oct 23, 2025
    1360310
  • Updated JSpecify Support (markdown)

    @msridhar msridhar committed Oct 23, 2025
    08b130c
  • Updated JSpecify Support (markdown)

    @msridhar msridhar committed Sep 22, 2025
    e98c5c2
  • Updated JSpecify Support (markdown)

    @msridhar msridhar committed Sep 22, 2025
    3a533ee
  • document more flags

    @msridhar msridhar committed Sep 16, 2025
    157e1b0