Drop unneeded generic type specifiers
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / leafref / LeafRefPathParserListenerImpl.java
index b1762982a7ad6f1c5725107f09594ecd78707cc4..5f5e0b23d71d7478808ebd3a81d810f7b7593a45 100644 (file)
@@ -61,7 +61,7 @@ final class LeafRefPathParserListenerImpl extends LeafRefPathParserBaseListener{
     public LeafRefPathParserListenerImpl(final SchemaContext schemaContext, final Module currentModule, final SchemaNode currentNode) {
        this.schemaContext = schemaContext;
        this.module = currentModule;
-       this.leafRefPathQnameList = new LinkedList<QNameWithPredicateBuilder>();
+       this.leafRefPathQnameList = new LinkedList<>();
        this.node=currentNode;
        this.currentParsingState = ParsingState.LEAF_REF_PATH;
     }
@@ -84,7 +84,7 @@ final class LeafRefPathParserListenerImpl extends LeafRefPathParserBaseListener{
     @Override
     public void enterRel_path_keyexpr(final Rel_path_keyexprContext ctx) {
         currentParsingState=ParsingState.PATH_KEY_EXPR;
-        predicatePathKeyQnameList = new LinkedList<QNameWithPredicateBuilder>();
+        predicatePathKeyQnameList = new LinkedList<>();
         final List<TerminalNode> dots = ctx.DOTS();
         for (final TerminalNode parent : dots) {
             predicatePathKeyQnameList.add(QNameWithPredicateBuilder.UP_PARENT_BUILDER);