You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2006/11/23 17:31:10 UTC

svn commit: r478613 - /harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/FileHandler.java

Author: tellison
Date: Thu Nov 23 08:31:10 2006
New Revision: 478613

URL: http://svn.apache.org/viewvc?view=rev&rev=478613
Log:
Convert occurrences of new Integer(x) to Integer.valueOf(x) for efficiency.

Modified:
    harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/FileHandler.java

Modified: harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/FileHandler.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/FileHandler.java?view=diff&rev=478613&r1=478612&r2=478613
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/FileHandler.java (original)
+++ harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/FileHandler.java Thu Nov 23 08:31:10 2006
@@ -423,7 +423,7 @@
         if("".equals(pattern)){ //$NON-NLS-1$
             throw new IllegalArgumentException();
         }
-        init(pattern, null, new Integer(DEFAULT_LIMIT), new Integer(
+        init(pattern, null, Integer.valueOf(DEFAULT_LIMIT), Integer.valueOf(
                 DEFAULT_COUNT));
     }
 
@@ -455,8 +455,8 @@
             // logging.19=Pattern cannot be empty
             throw new NullPointerException(Messages.getString("logging.19")); //$NON-NLS-1$
         }        
-        init(pattern, Boolean.valueOf(append), new Integer(DEFAULT_LIMIT),
-                new Integer(DEFAULT_COUNT));
+        init(pattern, Boolean.valueOf(append), Integer.valueOf(DEFAULT_LIMIT),
+                Integer.valueOf(DEFAULT_COUNT));
     }
 
     /**
@@ -496,7 +496,7 @@
             // logging.1B=The limit and count property must be larger than 0 and 1, respectively
             throw new IllegalArgumentException(Messages.getString("logging.1B")); //$NON-NLS-1$
         }
-        init(pattern, null, new Integer(limit), new Integer(count));
+        init(pattern, null, Integer.valueOf(limit), Integer.valueOf(count));
     }
 
     /**
@@ -541,7 +541,7 @@
             // logging.1B=The limit and count property must be larger than 0 and 1, respectively
             throw new IllegalArgumentException(Messages.getString("logging.1B")); //$NON-NLS-1$
         }
-        init(pattern, Boolean.valueOf(append), new Integer(limit), new Integer(
+        init(pattern, Boolean.valueOf(append), Integer.valueOf(limit), Integer.valueOf(
                 count));
     }
 
@@ -599,7 +599,7 @@
      * This output stream use decorator pattern to add measure feature to OutputStream
      * which can detect the total size(in bytes) of output, the initial size can be set
      */
-    class MeasureOutputStream extends OutputStream {
+    static class MeasureOutputStream extends OutputStream {
 
         OutputStream wrapped;