Turn StatementSupports into singletons
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / type / TypeStatementRFC7950Support.java
index e6a77c7d50183a106d62c005c9d7645f3badb9d2..debce5e9746ced2577e47ad14c7c526d220564db 100644 (file)
@@ -20,6 +20,15 @@ public final class TypeStatementRFC7950Support extends AbstractTypeStatementSupp
     private static final Map<String, StatementSupport<?, ?, ?>> ARGUMENT_SPECIFIC_SUPPORTS = ImmutableMap.of(
         LEAF_REF, new LeafrefSpecificationRFC7950Support(),
         IDENTITY_REF, new IdentityrefSpecificationRFC7950Support());
+    private static final TypeStatementRFC7950Support INSTANCE = new TypeStatementRFC7950Support();
+
+    private TypeStatementRFC7950Support() {
+        // Hidden
+    }
+
+    public static TypeStatementRFC7950Support getInstance() {
+        return INSTANCE;
+    }
 
     @Override
     public boolean hasArgumentSpecificSupports() {