Skip to content

Commit 6392d37

Browse files
cpovirkGoogle Java Core Libraries
authored andcommitted
Strip @NullMarked from GWT/J2CL artifact.
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
1 parent ee81d3f commit 6392d37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@
215215
<include name="**/super/**/*.java"/>
216216
</fileset>
217217
</replace>
218+
<replace token="@NullMarked" value="">
219+
<fileset dir="${project.build.directory}/gwt-sources">
220+
<include name="**/super/**/*.java"/>
221+
</fileset>
222+
</replace>
218223
</target>
219224
</configuration>
220225
</execution>

0 commit comments

Comments
 (0)