Updated copyright info
[javainspect.git] / src / main / java / eu / svjatoslav / inspector / java / structure / MethodDescriptor.java
index 1929348..96825fd 100755 (executable)
@@ -1,6 +1,6 @@
 /*
  * JavaInspect - Utility to visualize java software
- * Copyright (C) 2013-2015, 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
@@ -23,7 +23,7 @@ public class MethodDescriptor implements GraphElement,
 
     private final String methodName;
     private final ClassDescriptor parentClass;
-    private final List<ClassDescriptor> argumentTypes = new ArrayList<ClassDescriptor>();
+    private final List<ClassDescriptor> argumentTypes = new ArrayList<>();
     private ClassDescriptor returnType;
     private boolean isInherited;
 
@@ -86,7 +86,7 @@ public class MethodDescriptor implements GraphElement,
         if (!isVisible())
             return "";
 
-        final StringBuffer result = new StringBuffer();
+        final StringBuilder result = new StringBuilder();
 
         // describe associated types
         for (final ClassDescriptor classDescriptor : argumentTypes)
@@ -116,7 +116,7 @@ public class MethodDescriptor implements GraphElement,
         if (!isVisible())
             return "";
 
-        final StringBuffer result = new StringBuffer();
+        final StringBuilder result = new StringBuilder();
 
         result.append("        // " + methodName + "\n");