[Swift-commit] r4675 - trunk/src/org/griphyn/vdl/mapping/file

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Thu Jun 23 16:22:17 CDT 2011


Author: wozniak
Date: 2011-06-23 16:22:17 -0500 (Thu, 23 Jun 2011)
New Revision: 4675

Modified:
   trunk/src/org/griphyn/vdl/mapping/file/DefaultFileNameElementMapper.java
Log:
Use StringBuilder


Modified: trunk/src/org/griphyn/vdl/mapping/file/DefaultFileNameElementMapper.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/file/DefaultFileNameElementMapper.java	2011-06-23 21:21:38 UTC (rev 4674)
+++ trunk/src/org/griphyn/vdl/mapping/file/DefaultFileNameElementMapper.java	2011-06-23 21:22:17 UTC (rev 4675)
@@ -36,7 +36,7 @@
 	}
 
 	public String mapIndex(int index) {
-		StringBuffer sb = new StringBuffer();
+		StringBuilder sb = new StringBuilder(indexWidth);
 		String num = String.valueOf(index);
 		for (int i = 0; i < indexWidth - num.length(); i++) {
 			sb.append('0');




More information about the Swift-commit mailing list