tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832031 - in /tomcat/trunk/java/org/apache/el: parser/AstCompositeExpression.java parser/AstLiteralExpression.java parser/AstString.java parser/ParseException.java parser/TokenMgrError.java util/ReflectionUtil.java
Date Mon, 02 Nov 2009 18:42:21 GMT
Author: markt
Date: Mon Nov  2 18:42:21 2009
New Revision: 832031

URL: http://svn.apache.org/viewvc?rev=832031&view=rev
Log:
StringBuffer -> StringBuilder for o.a.el

Modified:
    tomcat/trunk/java/org/apache/el/parser/AstCompositeExpression.java
    tomcat/trunk/java/org/apache/el/parser/AstLiteralExpression.java
    tomcat/trunk/java/org/apache/el/parser/AstString.java
    tomcat/trunk/java/org/apache/el/parser/ParseException.java
    tomcat/trunk/java/org/apache/el/parser/TokenMgrError.java
    tomcat/trunk/java/org/apache/el/util/ReflectionUtil.java

Modified: tomcat/trunk/java/org/apache/el/parser/AstCompositeExpression.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/parser/AstCompositeExpression.java?rev=832031&r1=832030&r2=832031&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/parser/AstCompositeExpression.java (original)
+++ tomcat/trunk/java/org/apache/el/parser/AstCompositeExpression.java Mon Nov  2 18:42:21
2009
@@ -40,7 +40,7 @@
 
     public Object getValue(EvaluationContext ctx)
             throws ELException {
-        StringBuffer sb = new StringBuffer(16);
+        StringBuilder sb = new StringBuilder(16);
         Object obj = null;
         if (this.children != null) {
             for (int i = 0; i < this.children.length; i++) {

Modified: tomcat/trunk/java/org/apache/el/parser/AstLiteralExpression.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/parser/AstLiteralExpression.java?rev=832031&r1=832030&r2=832031&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/parser/AstLiteralExpression.java (original)
+++ tomcat/trunk/java/org/apache/el/parser/AstLiteralExpression.java Mon Nov  2 18:42:21 2009
@@ -46,7 +46,7 @@
             return;
         }
         int size = image.length();
-        StringBuffer buf = new StringBuffer(size);
+        StringBuilder buf = new StringBuilder(size);
         for (int i = 0; i < size; i++) {
             char c = image.charAt(i);
             if (c == '\\' && i + 1 < size) {

Modified: tomcat/trunk/java/org/apache/el/parser/AstString.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/parser/AstString.java?rev=832031&r1=832030&r2=832031&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/parser/AstString.java (original)
+++ tomcat/trunk/java/org/apache/el/parser/AstString.java Mon Nov  2 18:42:21 2009
@@ -57,7 +57,7 @@
             return;
         }
         int size = image.length();
-        StringBuffer buf = new StringBuffer(size);
+        StringBuilder buf = new StringBuilder(size);
         for (int i = 0; i < size; i++) {
             char c = image.charAt(i);
             if (c == '\\' && i + 1 < size) {

Modified: tomcat/trunk/java/org/apache/el/parser/ParseException.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/parser/ParseException.java?rev=832031&r1=832030&r2=832031&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/parser/ParseException.java (original)
+++ tomcat/trunk/java/org/apache/el/parser/ParseException.java Mon Nov  2 18:42:21 2009
@@ -100,7 +100,7 @@
     if (!specialConstructor) {
       return super.getMessage();
     }
-    StringBuffer expected = new StringBuffer();
+    StringBuilder expected = new StringBuilder();
     int maxSize = 0;
     for (int i = 0; i < expectedTokenSequences.length; i++) {
       if (maxSize < expectedTokenSequences[i].length) {
@@ -150,7 +150,7 @@
    * string literal.
    */
   protected String add_escapes(String str) {
-      StringBuffer retval = new StringBuffer();
+      StringBuilder retval = new StringBuilder();
       char ch;
       for (int i = 0; i < str.length(); i++) {
         switch (str.charAt(i))

Modified: tomcat/trunk/java/org/apache/el/parser/TokenMgrError.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/parser/TokenMgrError.java?rev=832031&r1=832030&r2=832031&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/parser/TokenMgrError.java (original)
+++ tomcat/trunk/java/org/apache/el/parser/TokenMgrError.java Mon Nov  2 18:42:21 2009
@@ -41,7 +41,7 @@
     * equivalents in the given string
     */
    protected static final String addEscapes(String str) {
-      StringBuffer retval = new StringBuffer();
+      StringBuilder retval = new StringBuilder();
       char ch;
       for (int i = 0; i < str.length(); i++) {
         switch (str.charAt(i))

Modified: tomcat/trunk/java/org/apache/el/util/ReflectionUtil.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/util/ReflectionUtil.java?rev=832031&r1=832030&r2=832031&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/util/ReflectionUtil.java (original)
+++ tomcat/trunk/java/org/apache/el/util/ReflectionUtil.java Mon Nov  2 18:42:21 2009
@@ -144,7 +144,7 @@
 
     protected static final String paramString(Class<?>[] types) {
         if (types != null) {
-            StringBuffer sb = new StringBuffer();
+            StringBuilder sb = new StringBuilder();
             for (int i = 0; i < types.length; i++) {
                 sb.append(types[i].getName()).append(", ");
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message