Select copyPolicy for each StatementSupport class
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / default_ / DefaultStatementSupport.java
index 456f3ee2b3b69936e8fccaee1e6bfd2c3d1aada8..0c98ecdd9be6ebcd5c83501187435f258f2e5dd1 100644 (file)
@@ -25,7 +25,8 @@ public final class DefaultStatementSupport
     private static final DefaultStatementSupport INSTANCE = new DefaultStatementSupport();
 
     private DefaultStatementSupport() {
-        super(YangStmtMapping.DEFAULT);
+        // Note: if we start interpreting the string we'll need to use CopyPolicy.DECLARED_COPY
+        super(YangStmtMapping.DEFAULT, CopyPolicy.CONTEXT_INDEPENDENT);
     }
 
     public static DefaultStatementSupport getInstance() {