Skip to content

Commit

Permalink
Strip @NullMarked from GWT/J2CL artifact.
Browse files Browse the repository at this point in the history
We already strip `@Nullable` because of [a GWT bug with type-use annotations](gwtproject/gwt#10020) (recently fixed!). But because of our usages of `@NullMarked`, the `@Nullable` stripping makes all types non-null. To avoid that, we strip `@NullMarked`, too.

RELNOTES=Changed our GWT/J2CL artifact to omit usages of `@NullMarked`. This was making all our types non-null in those environments, since we don't yet use `@Nullable` in the GWT/J2CL artifact.
PiperOrigin-RevId: 700266827
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Nov 26, 2024
1 parent ee81d3f commit 6392d37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@
<include name="**/super/**/*.java"/>
</fileset>
</replace>
<replace token="@NullMarked" value="">
<fileset dir="${project.build.directory}/gwt-sources">
<include name="**/super/**/*.java"/>
</fileset>
</replace>
</target>
</configuration>
</execution>
Expand Down

0 comments on commit 6392d37

Please sign in to comment.