Issue #288: less memory usage during FLA export, using stringbuilders

This commit is contained in:
honfika@gmail.com
2014-11-22 03:16:30 +01:00
parent dec1380d13
commit 13c894196c
33 changed files with 1024 additions and 995 deletions

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.graph;
import java.util.Collections;
@@ -34,19 +35,19 @@ public class GraphPartMulti extends GraphPart {
@Override
public String toString() {
public String toString() {
String ret = "";
StringBuilder ret = new StringBuilder();
ret.append("[multi ");
boolean first = true;
for (GraphPart g : parts) {
if (first) {
first = false;
} else {
} else {
ret.append(", ");
}
}
ret.append(g.toString());
}
}
ret += "]";
ret.append("]");
return ret.toString();
}
@Override