You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2010/07/22 16:04:19 UTC

svn commit: r966665 - /myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/Markup.java

Author: bommel
Date: Thu Jul 22 14:04:18 2010
New Revision: 966665

URL: http://svn.apache.org/viewvc?rev=966665&view=rev
Log:
Arrays.copyOf is not avaiable in jdk 1.5

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/Markup.java

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/Markup.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/Markup.java?rev=966665&r1=966664&r2=966665&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/Markup.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/Markup.java Thu Jul 22 14:04:18 2010
@@ -212,7 +212,8 @@ public final class Markup implements Ser
       if (ArrayUtils.contains(values, summand)) {
         return this;
       } else {
-        final String[] strings = Arrays.copyOf(values, values.length + 1);
+        final String[] strings = new String[values.length + 1];
+        System.arraycopy(values, 0, strings, 0, values.length);
         strings[values.length] = summand;
         return valueOf(strings);
       }