Skip to content

Eliminate nullability errors from :sdks:java:extensions:sorter #20504

Closed

Description

@damccorm

Just edit build.gradle and set enableChecker: true and fix some errors!

Imported from Jira BEAM-10561. Original Jira may contain additional context.
Reported by: kenn.
Subtask of issue #20497

Activity

  1. aditya-mistri commented on Feb 10, 2023

    @aditya-mistri

    Please assign me this issue , I want to work on this.

  2. kennknowles commented on Apr 26, 2023

    @kennknowles
    Member

    Sorry for the delay @aditya-mistri. Do you still want to work on this? You can also use the .take-issue command in the future to take an issue.

  3. nitinware commented on Sep 17, 2026

    @nitinware
    Contributor

    .take-issue

  4. nitinware commented on Sep 27, 2026

    @nitinware
    Contributor

    @damccorm @kennknowles -

    The sorter module already passes the nullness checker with no suppressions.

    The NullnessChecker is enabled by default for applyJavaNature modules (BeamModulePlugin.groovy), and the module has no nullness @SuppressWarnings.

    Verification

    ./gradlew :sdks:java:extensions:sorter:compileJava --rerun-tasks
    # BUILD SUCCESSFUL
    
    grep -rn 'SuppressWarnings("nullness")' sdks/java/extensions/sorter/src/main
    # no matches

    Since the module is already nullness-clean, this looks resolved and no code change is needed. Is this OK to close, or is there a suppression elsewhere you'd still like removed?

  5. kennknowles commented on Sep 29, 2026

    @kennknowles
    Member

    Yup, we can close this!

    BUT: the search you really need is a multiline regex search with something like @SuppressWarnings\([^)]*"nullness (this is an overapproximation with some pitfalls, but probably close enough)

  6. added this to the 2.78.0 Release milestone on Sep 29, 2026
  7. nitinware commented on Sep 29, 2026

    @nitinware
    Contributor

    Thanks @kennknowles! Good point. I rechecked using the multiline regex as suggested and confirmed there are no nullness suppressions in the sorter module.
    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions