Turn StatementSupports into singletons
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / notification / NotificationStatementRFC7950Support.java
index 227ca776fc2eb43adda5925f469bcf39b4f2057f..da275ebdfc24312728e6c26d19f15ce252190292 100644 (file)
@@ -47,6 +47,15 @@ public final class NotificationStatementRFC7950Support extends AbstractNotificat
 
     private static final Set<StatementDefinition> ILLEGAL_PARENTS = ImmutableSet.of(YangStmtMapping.NOTIFICATION,
             YangStmtMapping.RPC, YangStmtMapping.ACTION);
+    private static final NotificationStatementRFC7950Support INSTANCE = new NotificationStatementRFC7950Support();
+
+    private NotificationStatementRFC7950Support() {
+        // Hidden
+    }
+
+    public static NotificationStatementRFC7950Support getInstance() {
+        return INSTANCE;
+    }
 
     @Override
     public EffectiveStatement<QName, NotificationStatement> createEffective(