jdk/test/tools/jar/UpdateManifest.java
changeset 22261 e82547d2e78a
parent 6883 bbd0cba11983
child 30820 0d4717a011d3
--- a/jdk/test/tools/jar/UpdateManifest.java	Fri Jan 10 09:24:47 2014 -0800
+++ b/jdk/test/tools/jar/UpdateManifest.java	Fri Jan 10 19:48:02 2014 +0100
@@ -39,6 +39,8 @@
     static PrintStream err = System.err;
     static boolean debug = true;
 
+    static final Logger JAR_LOGGER = Logger.getLogger("java.util.jar");
+
     public static void realMain(String[] args) throws Throwable {
         if (args.length == 0) {
             debug = false;
@@ -47,7 +49,7 @@
             out = new PrintStream(new FileOutputStream(tmp));
             err = out;
             // Attributes.read() can log a message we don't care to see.
-            Logger.getLogger("java.util.jar").setLevel(Level.OFF);
+            JAR_LOGGER.setLevel(Level.OFF);
         }
 
         try { testManifestExistence(); } catch (Throwable t) { unexpected(t); }