test/java/util/logging/Listeners.java

Print this page
rev 6099 : 8003380: Compiler warnings in logging test code
Summary: Use generics, suppress warnings where appropriate, remove unused imports, etc.
Reviewed-by: lancea, chegar

*** 86,95 **** --- 86,96 ---- assertTrue(listeners[i].fireCount() == expected[i], "Unexpected event count"); } } + @SuppressWarnings("deprecation") public static void main(String[] args) throws Exception { LogManager logman = LogManager.getLogManager(); Listener[] listeners = new Listener[2]; Listener listener1 = listeners[0] = new Listener(LogManager.class);