summaryrefslogtreecommitdiffstats
path: root/jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java
diff options
context:
space:
mode:
authorgjoranv <gv@oath.com>2018-04-30 15:52:31 +0200
committergjoranv <gv@oath.com>2018-04-30 16:05:34 +0200
commit276cbbcee9d38d5a92df6ff66a0e4f06351cb679 (patch)
tree48f509eb985e8ac0d7b807824e4ceebf8977f999 /jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java
parenta1383ffe9f5d0731139bf3c1fa82636f1e765939 (diff)
Allow building with Java 9.
- Must suppress deprecation warning for unit tests because LogRecord.setInstant() is new for Java 9.
Diffstat (limited to 'jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java')
-rw-r--r--jdisc_core/src/test/java/com/yahoo/jdisc/core/OsgiLogHandlerTestCase.java2
1 files changed, 2 insertions, 0 deletions
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();