X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=binding%2Fmdsal-binding-generator%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fbinding%2Fyang%2Ftypes%2FAbstractTypeProvider.java;h=3da39a1fd8c309a882935b896468eac231b895ff;hb=52a7f5d28d922a0b17604642366f505f08db6d6d;hp=5cb016dd7a9a2b69fb5347ba2a12e1d062f77dfa;hpb=d9bb45af73fe0becf0fe0f1bf459504553d431b0;p=mdsal.git diff --git a/binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/yang/types/AbstractTypeProvider.java b/binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/yang/types/AbstractTypeProvider.java index 5cb016dd7a..3da39a1fd8 100644 --- a/binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/yang/types/AbstractTypeProvider.java +++ b/binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/yang/types/AbstractTypeProvider.java @@ -81,11 +81,6 @@ abstract class AbstractTypeProvider { private final Map, Map>> genTypeDefsContextMap = new HashMap<>(); - - /** - * The map which maps schema paths to JAVA Type. - */ - private final Map referencedTypes = new HashMap<>(); private final Map> additionalTypes = new HashMap<>(); /** @@ -101,25 +96,6 @@ abstract class AbstractTypeProvider { resolveTypeDefsFromContext(); } - /** - * Puts refType to map with key refTypePath. - * - * @param refTypePath schema path used as the map key - * @param refType type which represents the map value - * @throws IllegalArgumentException - *
    - *
  • if refTypePath equal null
  • - *
  • if refType equal null
  • - *
- * - */ - public void putReferencedType(final SchemaPath refTypePath, final Type refType) { - Preconditions.checkArgument(refTypePath != null, - "Path reference of Enumeration Type Definition cannot be NULL!"); - Preconditions.checkArgument(refType != null, "Reference to Enumeration Type cannot be NULL!"); - referencedTypes.put(refTypePath, refType); - } - public Map> getAdditionalTypes() { return additionalTypes; }