mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Avoid inefficient use of new String(String)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user