From 276cbbcee9d38d5a92df6ff66a0e4f06351cb679 Mon Sep 17 00:00:00 2001 From: gjoranv Date: Mon, 30 Apr 2018 15:52:31 +0200 Subject: Allow building with Java 9. - Must suppress deprecation warning for unit tests because LogRecord.setInstant() is new for Java 9. --- .../src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java') diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java index a5897bea124..7dca8c45d0b 100644 --- a/jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java +++ b/jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java @@ -70,6 +70,8 @@ public class OsgiLogHandlerTestCase { } @Test + // TODO: Remove deprecation annotation and replace calls to LogRecord.setMillis() when we no longer have to support Java 8 + @SuppressWarnings("deprecation") public void requireThatJdk14PropertiesAreAvailableThroughServiceReference() { MyLogService logService = new MyLogService(); -- cgit v1.2.3