mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GT-2869 - Key Bindings - review fixes
This commit is contained in:
parent
43fa7e3f92
commit
2de5c40cd6
23 changed files with 142 additions and 455 deletions
|
@ -18,6 +18,7 @@ package ghidra.util;
|
|||
import java.util.*;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
@ -857,18 +858,9 @@ public class StringUtilities {
|
|||
return null;
|
||||
}
|
||||
|
||||
int i = 0;
|
||||
StringBuffer buffer = new StringBuffer("[ ");
|
||||
for (Object o : collection) {
|
||||
buffer.append(o.toString());
|
||||
if (i + 1 < collection.size()) {
|
||||
buffer.append(separator);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
buffer.append(" ]");
|
||||
return buffer.toString();
|
||||
String asString =
|
||||
collection.stream().map(o -> o.toString()).collect(Collectors.joining(separator));
|
||||
return "[ " + asString + " ]";
|
||||
}
|
||||
|
||||
public static String toStringWithIndent(Object o) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue