diff --git a/src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-unsafe-1.8.txt b/src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-unsafe-1.8.txt index 55f1833e..7c1ec824 100644 --- a/src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-unsafe-1.8.txt +++ b/src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-unsafe-1.8.txt @@ -14,6 +14,32 @@ # These methods and classes should not be used by server classes (unsafe, no charset, no locale,...): -# We only include 1.7 for now. -# TODO: Scan Java 8 API for additional locale/charset/... violations! @includeBundled jdk-unsafe-1.7 + +@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)