test/java/util/logging/ListenersWithSM.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

*** 33,42 **** --- 33,43 ---- import java.beans.PropertyChangeListener; import java.beans.PropertyChangeEvent; public class ListenersWithSM { + @SuppressWarnings("deprecation") public static void main(String[] args) throws Exception { boolean granted = args[0].equals("grant"); // need to get reference to LogManager before setting SecurityManager LogManager logman = LogManager.getLogManager();