mirror of https://github.com/dspinellis/UMLGraph
Replace StringBuffer with StringBuilder (plus tiny simplification)
This commit is contained in:
parent
742ee6f73e
commit
78ab2dc006
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue