mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 15:41:12 +00:00
#493 Missing/Lost search results: fixed, swf, zip and binary files temporary disabled
This commit is contained in:
@@ -330,6 +330,34 @@ public class Helper {
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static String joinStrings(List<String> arr, String formatString, String glue) {
|
||||
String ret = "";
|
||||
boolean first = true;
|
||||
for (String s : arr) {
|
||||
if (!first) {
|
||||
ret += glue;
|
||||
} else {
|
||||
first = false;
|
||||
}
|
||||
ret += String.format(formatString, s);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static String joinStrings(String[] arr, String formatString, String glue) {
|
||||
String ret = "";
|
||||
boolean first = true;
|
||||
for (String s : arr) {
|
||||
if (!first) {
|
||||
ret += glue;
|
||||
} else {
|
||||
first = false;
|
||||
}
|
||||
ret += String.format(formatString, s);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static Object deepCopy(Object o) {
|
||||
try {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
|
||||
Reference in New Issue
Block a user