harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r555266 - /harmony/enhanced/classlib/branches/java6/modules/logging/src/main/java/java/util/logging/Logger.java
Date Wed, 11 Jul 2007 13:20:13 GMT
Author: tellison
Date: Wed Jul 11 06:20:12 2007
New Revision: 555266

URL: http://svn.apache.org/viewvc?view=rev&rev=555266
Log:
Deprecate global variable and introduce global name, as described in spec.

Modified:
    harmony/enhanced/classlib/branches/java6/modules/logging/src/main/java/java/util/logging/Logger.java

Modified: harmony/enhanced/classlib/branches/java6/modules/logging/src/main/java/java/util/logging/Logger.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/logging/src/main/java/java/util/logging/Logger.java?view=diff&rev=555266&r1=555265&r2=555266
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/logging/src/main/java/java/util/logging/Logger.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/logging/src/main/java/java/util/logging/Logger.java
Wed Jul 11 06:20:12 2007
@@ -76,9 +76,17 @@
 
     /**
      * The global logger is provided as convenience for casual use.
+     *
+     * @deprecated Use Logger.getLogger(Logger.GLOBAL_LOGGER_NAME) instead.
      */
+    @Deprecated
     public final static Logger global = new Logger("global", null); //$NON-NLS-1$
 
+    /**
+     * @since 1.6
+     */
+    public static final String GLOBAL_LOGGER_NAME = "global";
+
     // the name of this logger
     private volatile String name;
 
@@ -1405,4 +1413,5 @@
         handlerInited = false;
     }
 }
+
 



Mime
View raw message