Repository navigation
Refer to @NullMarked by name instead of by class literal. - #3258
Merged
Merged
Conversation
copybara-service
Bot
force-pushed
the
test_453690086
branch
2 times, most recently
from
June 8, 2022 16:19
12c7917 to
ec3ccff
Compare
copybara-service
Bot
force-pushed
the
test_453690086
branch
from
June 8, 2022 16:31
ec3ccff to
d88561f
Compare
copybara-service Bot
pushed a commit
that referenced
this pull request
Apr 11, 2025
I don't think this is currently like [`javax.inject`](#3897), in which the dependency is actually important to have at runtime. But quite possibly it _would_ matter if we were to start to use `NullMarked.class` or something, as we [used to](#3258)? And anyway, I'd normally default to including everything that we can. The exclusion that I added does appear to be necessary to avoid copying over the `META-INF/versions/9/OSGI-INF/MANIFEST.MF` file from JSpecify: ``` Manifest-Version: 1.0 Import-Package: java.lang,java.lang.annotation Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))" ``` PiperOrigin-RevId: 746459384
copybara-service Bot
pushed a commit
that referenced
this pull request
Apr 11, 2025
I don't think this is currently like [`javax.inject`](#3897), in which the dependency is actually important to have at runtime. But quite possibly it _would_ matter if we were to start to use `NullMarked.class` or something, as we [used to](#3258)? And anyway, I'd normally default to including everything that we can. The exclusion that I added does appear to be necessary to avoid copying over the `META-INF/versions/9/OSGI-INF/MANIFEST.MF` file from JSpecify: ``` Manifest-Version: 1.0 Import-Package: java.lang,java.lang.annotation Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))" ``` PiperOrigin-RevId: 746527152
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Refer to @NullMarked by name instead of by class literal.
The open-source Error Prone release does not yet depend on the JSpecify annotations, and there's no reason for us to build in any kind of dependency on the class. (I'm not sure how strong a dependency "NullMarked.class" creates, but we might as well avoid it when we can.)
followup to 51da16e