Merge "Introduce InstanceIdToNodes into yang-data-impl"
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / reactor / RootStatementContext.java
index f5bf42e66df19f6f4e4e71ae329c11e67d8dc925..695251f369a89f78a36f2a961306f368ae4e2733 100644 (file)
@@ -24,7 +24,6 @@ class RootStatementContext<A, D extends DeclaredStatement<A>, E extends Effectiv
 
     private final SourceSpecificContext sourceContext;
     private final A argument;
-    private LinkedList<?> linkedList;
 
     RootStatementContext(ContextBuilder<A, D, E> builder,
             SourceSpecificContext sourceContext) throws SourceException {
@@ -100,14 +99,12 @@ class RootStatementContext<A, D extends DeclaredStatement<A>, E extends Effectiv
     public StatementContextBase<A, D, E> createCopy(QNameModule newQNameModule, StatementContextBase<?, ?, ?> newParent)
             throws SourceException {
 
-        StatementContextBase<A, D, E> copy = new RootStatementContext<A, D, E>(
-                this, newQNameModule);
-        return copy;
+        return new RootStatementContext<>(this, newQNameModule);
     }
 
     @Override
     public List<Object> getArgumentsFromRoot() {
-        LinkedList<Object> argumentList = new LinkedList<Object>();
+        List<Object> argumentList = new LinkedList<Object>();
         argumentList.add(argument);
         return argumentList;
     }