directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r491686 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/RegexSyntaxChecker.java
Date Mon, 01 Jan 2007 23:17:14 GMT
Author: elecharny
Date: Mon Jan  1 15:17:11 2007
New Revision: 491686

URL: http://svn.apache.org/viewvc?view=rev&rev=491686
Log:
Avoid a (String[]) cast

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/RegexSyntaxChecker.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/RegexSyntaxChecker.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/RegexSyntaxChecker.java?view=diff&rev=491686&r1=491685&r2=491686
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/RegexSyntaxChecker.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/RegexSyntaxChecker.java
Mon Jan  1 15:17:11 2007
@@ -111,7 +111,8 @@
      */
     public String[] getExpressions()
     {
-        return (String[])expressions.toArray();
+        String[] exprs = new String[ expressions.size() ];
+        return expressions.toArray( exprs );
     }
 
     /**



Mime
View raw message