/*
* JavaInspect - Utility to visualize java software
- * Copyright (C) 2013-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2013-2020, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
public class FieldDescriptor implements GraphElement {
private final ClassDescriptor parentClassDescriptor;
- private final List<ClassDescriptor> typeArguments = new ArrayList<ClassDescriptor>();
+ private final List<ClassDescriptor> typeArguments = new ArrayList<>();
private String name;
private ClassDescriptor type;
private boolean isInherited;
if (!isVisible())
return "";
- final StringBuffer result = new StringBuffer();
+ final StringBuilder result = new StringBuilder();
// describe associated types
for (final ClassDescriptor classDescriptor : typeArguments)
if (!isVisible())
return "";
- final StringBuffer result = new StringBuffer();
+ final StringBuilder result = new StringBuilder();
result.append(" // " + name + "\n");
if (parentClassDescriptor.isEnum && (type == parentClassDescriptor)) {
}
-}
\ No newline at end of file
+}