]> source.dussan.org Git - archiva.git/commitdiff
correctly intialize array size
authorOlivier Lamy <olamy@apache.org>
Sun, 8 Jul 2012 16:12:21 +0000 (16:12 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 8 Jul 2012 16:12:21 +0000 (16:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1358772 13f79535-47bb-0310-9956-ffa450edef68

redback-users/redback-users-providers/redback-users-jdo/src/main/java/org/apache/archiva/redback/users/jdo/JdoUserQuery.java

index 77933e92936e44db63e27baa5b27c53f196f7065..5cb873c09d47c895fbe7fa72c34e2d8e76f3f3ce 100644 (file)
@@ -105,7 +105,7 @@ public class JdoUserQuery
             keys.add( getEmail() );
         }
 
-        return (String[]) keys.toArray( new String[0] );
+        return keys.toArray( new String[keys.size()] );
     }
 
     /**