Avoid inefficient use of new String(String)

This commit is contained in:
Federico Bond
2014-09-14 21:01:36 -03:00
parent 005623c768
commit c2c1f1a216
+1 -1
View File
@@ -9049,7 +9049,7 @@ public class PApplet extends Applet
//}
if (splitCount == 0) {
String splits[] = new String[1];
splits[0] = new String(value);
splits[0] = value;
return splits;
}
//int pieceCount = splitCount + 1;