jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juanpa...@apache.org
Subject svn commit: r1690169 - in /jspwiki/trunk/jspwiki-war/src: main/java/org/apache/wiki/ui/ main/java/org/apache/wiki/ui/admin/ test/java/org/apache/wiki/ test/java/org/apache/wiki/parser/ test/java/org/apache/wiki/plugin/
Date Thu, 09 Jul 2015 20:32:38 GMT
Author: juanpablo
Date: Thu Jul  9 20:32:38 2015
New Revision: 1690169

URL: http://svn.apache.org/r1690169
Log:
StringBuffer -> StringBuilder

Modified:
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/AbstractCommand.java
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/TemplateManager.java
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/admin/SimpleAdminBean.java
    jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/ReferenceManagerTest.java
    jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/parser/JSPWikiMarkupParserTest.java
    jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/plugin/SamplePlugin.java

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/AbstractCommand.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/AbstractCommand.java?rev=1690169&r1=1690168&r2=1690169&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/AbstractCommand.java (original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/AbstractCommand.java Thu Jul
 9 20:32:38 2015
@@ -145,7 +145,7 @@ public abstract class AbstractCommand im
     private String removeSubstitutions(String jsp)
     {
         //return jsp.replaceAll( "\u0025[a-z|A-Z]", "" );
-        StringBuffer newjsp = new StringBuffer( jsp.length() );
+    	StringBuilder newjsp = new StringBuilder( jsp.length() );
         for( int i = 0; i < jsp.length(); i++ )
         {
             char c = jsp.charAt(i);

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/TemplateManager.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/TemplateManager.java?rev=1690169&r1=1690168&r2=1690169&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/TemplateManager.java (original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/TemplateManager.java Thu Jul
 9 20:32:38 2015
@@ -676,7 +676,7 @@ public class TemplateManager extends Mod
      */
     private static String getJSLocalizedStrings( WikiContext context )
     {
-        StringBuffer sb = new StringBuffer();
+    	StringBuilder sb = new StringBuilder();
 
         sb.append( "var LocalizedStrings = {\n");
 

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/admin/SimpleAdminBean.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/admin/SimpleAdminBean.java?rev=1690169&r1=1690168&r2=1690169&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/admin/SimpleAdminBean.java
(original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/admin/SimpleAdminBean.java
Thu Jul  9 20:32:38 2015
@@ -18,10 +18,11 @@
  */
 package org.apache.wiki.ui.admin;
 
-import javax.management.*;
+import javax.management.MBeanAttributeInfo;
+import javax.management.MBeanInfo;
+import javax.management.NotCompliantMBeanException;
 
 import org.apache.commons.lang.StringUtils;
-
 import org.apache.wiki.WikiContext;
 import org.apache.wiki.WikiEngine;
 import org.apache.wiki.management.SimpleMBean;
@@ -70,7 +71,7 @@ public abstract class SimpleAdminBean ex
     {
         MBeanInfo info = getMBeanInfo();
         MBeanAttributeInfo[] attributes = info.getAttributes();
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         
         for( int i = 0; i < attributes.length; i++ )
         {

Modified: jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/ReferenceManagerTest.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/ReferenceManagerTest.java?rev=1690169&r1=1690168&r2=1690169&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/ReferenceManagerTest.java (original)
+++ jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/ReferenceManagerTest.java Thu
Jul  9 20:32:38 2015
@@ -18,13 +18,13 @@ import java.util.Iterator;
 import java.util.Properties;
 import java.util.Set;
 
+import org.apache.wiki.api.exceptions.WikiException;
+
 import junit.framework.Test;
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 import net.sf.ehcache.CacheManager;
 
-import org.apache.wiki.api.exceptions.WikiException;
-
 /**
  * The ReferenceManager maintains all hyperlinks between wiki pages.
  */
@@ -378,7 +378,7 @@ public class ReferenceManagerTest extend
      */
     public static String dumpReferenceManager( ReferenceManager rm )
     {
-        StringBuffer buf = new StringBuffer();
+    	StringBuilder buf = new StringBuilder();
         try
         {
             buf.append( "================================================================\n"
);

Modified: jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/parser/JSPWikiMarkupParserTest.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/parser/JSPWikiMarkupParserTest.java?rev=1690169&r1=1690168&r2=1690169&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/parser/JSPWikiMarkupParserTest.java
(original)
+++ jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/parser/JSPWikiMarkupParserTest.java
Thu Jul  9 20:32:38 2015
@@ -29,11 +29,6 @@ import java.util.Vector;
 
 import javax.servlet.ServletException;
 
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import net.sf.ehcache.CacheManager;
-
 import org.apache.wiki.LinkCollector;
 import org.apache.wiki.TestEngine;
 import org.apache.wiki.WikiContext;
@@ -47,6 +42,11 @@ import org.apache.wiki.render.XHTMLRende
 import org.apache.wiki.stress.Benchmark;
 import org.apache.wiki.util.TextUtil;
 
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import net.sf.ehcache.CacheManager;
+
 public class JSPWikiMarkupParserTest extends TestCase
 {
     Properties props = TestEngine.getTestProperties();
@@ -2599,7 +2599,7 @@ public class JSPWikiMarkupParserTest ext
     {
         String deadlySpammerText = "zzz <a href=\"http://ring1.gmum.net/frog-ringtone.html\">frogringtone</a>
zzz http://ring1.gmum.net/frog-ringtone.html[URL=http://ring1.gmum.net/frog-ringtone.html]frog
ringtone[/URL] frogringtone<br>";
 
-        StringBuffer death = new StringBuffer( 20000 );
+        StringBuilder death = new StringBuilder( 20000 );
 
         for( int i = 0; i < 1000; i++ )
         {

Modified: jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/plugin/SamplePlugin.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/plugin/SamplePlugin.java?rev=1690169&r1=1690168&r2=1690169&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/plugin/SamplePlugin.java (original)
+++ jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/plugin/SamplePlugin.java Thu Jul
 9 20:32:38 2015
@@ -38,15 +38,15 @@ public class SamplePlugin implements Wik
     protected static boolean c_rendered = false;
     
     public String execute( WikiContext context, Map< String, String > params ) throws
PluginException {
-        StringBuffer sb = new StringBuffer();
+    	StringBuilder sb = new StringBuilder();
 
-        String text = (String) params.get("text");
+        String text = params.get("text");
 
         if( text != null ) {
             sb.append( text );
         }
 
-        String body = (String)params.get("_body");
+        String body = params.get("_body");
         if( body != null ) {
             sb.append( " ("+body.replace('\n','+')+")" );
         }



Mime
View raw message