Replace StringBuffer with StringBuilder (plus tiny simplification)

This commit is contained in:
Fotis Xenakis 2019-04-09 19:29:14 +03:00
parent 742ee6f73e
commit 78ab2dc006
1 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ class ClassGraph {
private String typeParameters(Options opt, ParameterizedType t) {
if (t == null)
return "";
StringBuffer tp = new StringBuffer(1000).append("<");
StringBuilder tp = new StringBuilder(1000).append("<");
Type args[] = t.typeArguments();
for (int i = 0; i < args.length; i++) {
tp.append(type(opt, args[i], true));
@ -439,7 +439,7 @@ class ClassGraph {
if (ecs.length == 0) {
tableLine(Align.LEFT, "");
} else {
for (FieldDoc fd : c.enumConstants()) {
for (FieldDoc fd : ecs) {
tableLine(Align.LEFT, fd.name());
}
}