Use diamond type

This commit is contained in:
Johnny Lim
2017-11-20 02:25:30 +09:00
committed by Rob Winch
parent cfe40358bd
commit 57353d18e5
221 changed files with 423 additions and 428 deletions

View File

@@ -79,7 +79,7 @@ public abstract class AbstractElement {
* @return the fully-qualified name of this element, including any parents
*/
public String getFullName() {
List<String> strings = new ArrayList<String>();
List<String> strings = new ArrayList<>();
AbstractElement currentElement = this;
while (currentElement != null) {
strings.add(0, currentElement.getName());