Skip to content

Commit

Permalink
Strip JSpecify annotations from file in bootstrap tools.
Browse files Browse the repository at this point in the history
java/time/zone/ZoneOffsetTransitionRule.java is compiled for the
bootstrap tools, so must not contain JSpecify annotations.
  • Loading branch information
wmdietl committed Dec 17, 2024
1 parent 00585ac commit 09309ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions make/CopyInterimTZDB.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ define tzdb_copyfiles
$(call MakeTargetDir)
$(RM) '$@'
$(SED) -e "s/package java.time.zone/package build.tools.tzdb/" \
-e "s/import org.jspecify.annotations.NullMarked;//" \
-e "s/import org.jspecify.annotations.Nullable;//" \
-e "s/@NullMarked//" \
-e "s/@Nullable //" \
< $(<) > $@
endef

Expand Down

0 comments on commit 09309ef

Please sign in to comment.