cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r1149538 - /cocoon/cocoon3/trunk/cocoon-util/src/main/java/org/apache/cocoon/util/wildcard/WildcardMatcherHelper.java
Date Fri, 22 Jul 2011 09:57:38 GMT
Author: reinhard
Date: Fri Jul 22 09:57:38 2011
New Revision: 1149538

URL: http://svn.apache.org/viewvc?rev=1149538&view=rev
Log:
no need for StringBuffer, use StringBuilder instead

Modified:
    cocoon/cocoon3/trunk/cocoon-util/src/main/java/org/apache/cocoon/util/wildcard/WildcardMatcherHelper.java

Modified: cocoon/cocoon3/trunk/cocoon-util/src/main/java/org/apache/cocoon/util/wildcard/WildcardMatcherHelper.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-util/src/main/java/org/apache/cocoon/util/wildcard/WildcardMatcherHelper.java?rev=1149538&r1=1149537&r2=1149538&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-util/src/main/java/org/apache/cocoon/util/wildcard/WildcardMatcherHelper.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-util/src/main/java/org/apache/cocoon/util/wildcard/WildcardMatcherHelper.java
Fri Jul 22 09:57:38 2011
@@ -253,7 +253,7 @@ public class WildcardMatcherHelper {
      * @return compiled regexp program.
      */
     private static Pattern compileRegexp(String pat) {
-        StringBuffer repat = new StringBuffer(pat.length() * 6);
+        StringBuilder repat = new StringBuilder(pat.length() * 6);
         repat.append('^');
 
         // Add an extra character to allow unchecked wcpat[i+1] accesses.



Mime
View raw message