geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r571565 - /geronimo/sandbox/gshell/trunk/gshell-common/src/main/java/org/apache/geronimo/gshell/common/DurationFormatUtils.java
Date Fri, 31 Aug 2007 20:32:22 GMT
Author: jdillon
Date: Fri Aug 31 13:32:22 2007
New Revision: 571565

URL: http://svn.apache.org/viewvc?rev=571565&view=rev
Log:
Minor opt

Modified:
    geronimo/sandbox/gshell/trunk/gshell-common/src/main/java/org/apache/geronimo/gshell/common/DurationFormatUtils.java

Modified: geronimo/sandbox/gshell/trunk/gshell-common/src/main/java/org/apache/geronimo/gshell/common/DurationFormatUtils.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-common/src/main/java/org/apache/geronimo/gshell/common/DurationFormatUtils.java?rev=571565&r1=571564&r2=571565&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-common/src/main/java/org/apache/geronimo/gshell/common/DurationFormatUtils.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-common/src/main/java/org/apache/geronimo/gshell/common/DurationFormatUtils.java
Fri Aug 31 13:32:22 2007
@@ -495,7 +495,7 @@
      */
     static Token[] lexx(String format) {
         char[] array = format.toCharArray();
-        ArrayList list = new ArrayList(array.length);
+        ArrayList<Token> list = new ArrayList<Token>(array.length);
 
         boolean inLiteral = false;
         StringBuffer buffer = null;
@@ -546,7 +546,7 @@
                 buffer = null;
             }
         }
-        return (Token[]) list.toArray( new Token[list.size()] );
+        return list.toArray( new Token[list.size()] );
     }
 
     /**



Mime
View raw message