jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1214224 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/util/Text.java
Date Wed, 14 Dec 2011 12:58:34 GMT
Author: reschke
Date: Wed Dec 14 12:58:34 2011
New Revision: 1214224

URL: http://svn.apache.org/viewvc?rev=1214224&view=rev
Log:
JCR-3177: Remove jdk 1.4 restriction for jcr-tests

Reduce warning noise on test utils

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/util/Text.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/util/Text.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/util/Text.java?rev=1214224&r1=1214223&r2=1214224&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/util/Text.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/util/Text.java
Wed Dec 14 12:58:34 2011
@@ -24,6 +24,7 @@ import java.security.MessageDigest;
 import java.security.NoSuchAlgorithmException;
 import java.util.ArrayList;
 import java.util.BitSet;
+import java.util.List;
 import java.util.Properties;
 
 /**
@@ -141,7 +142,7 @@ public class Text {
             return new String[0];
         }
 
-        ArrayList strings = new ArrayList();
+        List<String> strings = new ArrayList<String>();
         int pos;
         int lastpos = 0;
 
@@ -160,7 +161,7 @@ public class Text {
         }
 
         // return stringarray
-        return (String[]) strings.toArray(new String[strings.size()]);
+        return strings.toArray(new String[strings.size()]);
     }
 
     /**



Mime
View raw message