From 491bac8cae9bfded3c4d1fc76ea2f21c1f813e36 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Wed, 17 Jun 2015 22:13:55 +0200 Subject: [PATCH] Issue #19: Add java.time unsafe methods (first stab) --- .../forbiddenapis/signatures/jdk-unsafe-1.8.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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..02e65d20 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,15 @@ # 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() +