Repeated instantiation of typeProvider 51/56751/2
authorJie Han <han.jie@zte.com.cn>
Wed, 10 May 2017 01:52:06 +0000 (09:52 +0800)
committerMartin Ciglan <mciglan@cisco.com>
Wed, 10 May 2017 09:05:41 +0000 (09:05 +0000)
Another instantiation is at line 253 of the same file in function:
public List<Type> generateTypes(final SchemaContext context, final Set<Module> modules)

Change-Id: Ic6dab97de47f54db193f5da7952e97bade656fd9
Signed-off-by: Jie Han <han.jie@zte.com.cn>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/generator/impl/BindingGeneratorImpl.java

index 6f64e70d158796339f4d1a79701a507cd813c35f..33bd1b18a7b85d69e45111a738a2c4689f439e93 100644 (file)
@@ -210,7 +210,6 @@ public class BindingGeneratorImpl implements BindingGenerator {
         checkArgument(context != null, "Schema Context reference cannot be NULL.");
         checkState(context.getModules() != null, "Schema Context does not contain defined modules.");
         schemaContext = context;
-        typeProvider = new TypeProviderImpl(context);
         final Set<Module> modules = context.getModules();
         return generateTypes(context, modules);
     }