diff --git a/dev-tools/maven/pom.xml.template b/dev-tools/maven/pom.xml.template index 9dbe4b7460e..c83feb6b60c 100644 --- a/dev-tools/maven/pom.xml.template +++ b/dev-tools/maven/pom.xml.template @@ -159,7 +159,7 @@ de.thetaphi forbiddenapis - 1.8 + 2.0 - - - - - - + + + + + + + + diff --git a/lucene/tools/forbiddenApis/base.txt b/lucene/tools/forbiddenApis/base.txt index 39e2f78f304..f83d5b3ba47 100644 --- a/lucene/tools/forbiddenApis/base.txt +++ b/lucene/tools/forbiddenApis/base.txt @@ -37,37 +37,3 @@ java.lang.Character#codePointAt(char[],int) @ Implicit end offset is error-prone java.io.File#delete() @ use Files.delete for real exception, IOUtils.deleteFilesIgnoringExceptions if you dont care java.util.Collections#shuffle(java.util.List) @ Use shuffle(List, Random) instead so that it can be reproduced - -# START: forbidden-apis patch -# TODO: remove this once forbidden-apis was updated to next version with following commit: -# https://github.com/policeman-tools/forbidden-apis/commit/c34a02afcd7856478e9adfd32be2fc5bf82ca268 - -@defaultMessage Uses default time zone -java.time.LocalDateTime#now() -java.time.LocalDate#now() -java.time.LocalTime#now() -java.time.OffsetDateTime#now() -java.time.OffsetTime#now() -java.time.Year#now() -java.time.YearMonth#now() -java.time.MonthDay#now() -java.time.chrono.Chronology#dateNow() -java.time.chrono.HijrahChronology#dateNow() -java.time.chrono.JapaneseChronology#dateNow() -java.time.chrono.MinguoChronology#dateNow() -java.time.chrono.ThaiBuddhistChronology#dateNow() -java.time.chrono.IsoChronology#dateNow() -java.time.chrono.HijrahDate#now() -java.time.chrono.JapaneseDate#now() -java.time.chrono.MinguoDate#now() -java.time.chrono.ThaiBuddhistDate#now() - -@defaultMessage Uses default locale -java.time.format.DateTimeFormatterBuilder#toFormatter(java.time.format.ResolverStyle,java.time.chrono.Chronology) -java.time.format.DateTimeFormatter#ofLocalizedDate(java.time.format.FormatStyle) -java.time.format.DateTimeFormatter#ofLocalizedDateTime(java.time.format.FormatStyle,java.time.format.FormatStyle) -java.time.format.DateTimeFormatter#ofLocalizedDateTime(java.time.format.FormatStyle) -java.time.format.DateTimeFormatter#ofLocalizedTime(java.time.format.FormatStyle) -java.time.format.DateTimeFormatter#ofPattern(java.lang.String) - -# END: forbidden-apis patch \ No newline at end of file diff --git a/solr/common-build.xml b/solr/common-build.xml index 4dc7b72b8d0..ca4ae3de5f8 100644 --- a/solr/common-build.xml +++ b/solr/common-build.xml @@ -494,14 +494,16 @@ - - - - - - - - + + + + + + + + + +