GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Drop the jspecify nullness annotations by slachiewicz · Pull Request #429 · apache/maven-shared-utils

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Sep 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Removes the org.jspecify:jspecify dependency and every @NonNull / @Nullable annotation it supplied, in place of the provided-scope change this PR first proposed. The review on that version asked whether the annotations earn their place at all; they are not checked by any tool in this build, so dropping them is the smaller change to the consumer graph than adjusting the scope.

The diff is large only because spotless re-joins signatures that fit on one line once the annotations are gone. No method body changes.

What consumers see: the runtime annotation metadata disappears from public signatures. Nothing in this library reflects on it, Maven core has no reference to org.jspecify at all, and NullAway or similar checkers were never wired into this build. I have not audited the other consumers; one that referenced org.jspecify transitively through this artifact would need to declare it itself.

After the change dependency:list -DincludeScope=runtime yields slf4j-api, jansi (optional) and commons-io.

Verified: JAVA_HOME=$(/usr/libexec/java_home -v 17) mvn -B verify -> Tests run: 788, Failures: 0, Errors: 0 (JDK 17); spotless clean; dependency:list -DincludeScope=runtime shows no jspecify

This change was created with AI assistance.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@slachiewicz slachiewicz added the dependencies Pull requests that update a dependency file label Sep 10, 2026
@slachiewicz slachiewicz added this to the 3.5.0 milestone Sep 10, 2026
@slachiewicz
slachiewicz requested a review from elharo September 10, 2026 10:57
@slachiewicz
slachiewicz marked this pull request as ready for review September 10, 2026 10:57
elharo
elharo approved these changes Sep 10, 2026
View reviewed changes

@elharo elharo left a comment

Copy link
Copy Markdown
Contributor

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.

This makes me wonder if we could just drop this. The 18 different variants of Null/NonNull/Nullable etc. feel like an experiment that has failed. I've never seem them improve robustness in any meaningful way. They're applied haphazardly and never checked.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
slachiewicz added a commit that referenced this pull request Sep 11, 2026
@slachiewicz
Drop the jspecify nullness annotations
d3dc4ad
Review of the provided-scope change (#429) asked whether the annotations
earn their place at all: they are applied haphazardly, never checked by a
tool in this build, and add a dependency to the graph of every consumer.
Removing them leaves nothing to scope.

The only behavioural surface was RetentionPolicy.RUNTIME metadata on
public signatures; nothing in this library or Maven core reflects on it.
@slachiewicz
slachiewicz force-pushed the agent/jspecify-provided branch from 5688119 to d3dc4ad Compare September 11, 2026 07:00
@slachiewicz slachiewicz added the maintenance label Sep 11, 2026
@slachiewicz slachiewicz changed the title Declare jspecify at provided scope Drop the jspecify nullness annotations Sep 11, 2026
@slachiewicz
slachiewicz marked this pull request as draft September 11, 2026 07:00
@slachiewicz
Drop the jspecify nullness annotations
e921682
Review of the provided-scope change (#429) asked whether the annotations
earn their place at all: they are applied haphazardly, never checked by a
tool in this build, and add a dependency to the graph of every consumer.
Removing them leaves nothing to scope.

The only behavioural surface was RetentionPolicy.RUNTIME metadata on
public signatures; nothing in this library or Maven core reflects on it.
@slachiewicz
slachiewicz force-pushed the agent/jspecify-provided branch from d3dc4ad to e921682 Compare September 11, 2026 07:02
@slachiewicz
slachiewicz marked this pull request as ready for review September 11, 2026 07:05
@slachiewicz
slachiewicz merged commit 5e65e7c into master Sep 11, 2026
15 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@slachiewicz
slachiewicz deleted the agent/jspecify-provided branch September 11, 2026 07:10
@github-actions github-actions Bot assigned slachiewicz Sep 11, 2026
@slachiewicz slachiewicz removed the maintenance label Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@elharo elharo elharo approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@slachiewicz slachiewicz

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Milestone

3.5.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@slachiewicz @elharo
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.