cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r123804 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java
Date Fri, 31 Dec 2004 15:52:57 GMT
Author: antonio
Date: Fri Dec 31 07:52:55 2004
New Revision: 123804

URL: http://svn.apache.org/viewcvs?view=rev&rev=123804
Log:
Use StringBuffer
Modified:
   cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java?view=diff&rev=123804&p1=cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java&r1=123803&p2=cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java&r2=123804
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java
Fri Dec 31 07:52:55 2004
@@ -332,14 +332,17 @@
                              errorHandler);
             List errorList = errorHandler.getErrorList();
             if (errorList.size() > 0) {
-                String msg = "Failed to compile Java class " + className +": ";
+                StringBuffer msg = new StringBuffer();
+                msg.append("Failed to compile Java class ");
+                msg.append(className);
+                msg.append(": ");
                 Iterator iter = errorList.iterator();
                 while (iter.hasNext()) {
-                    msg += "\n";
-                    msg += (String)iter.next();
+                    msg.append("\n");
+                    msg.append((String)iter.next());
                 }
-                notifyListeners(src, msg);
-                throw new ClassCompilationException(msg);
+                notifyListeners(src, msg.toString());
+                throw new ClassCompilationException(msg.toString());
             }
 
             return classRepository.getCompiledClass(className);

Mime
View raw message