Remove default BindingGeneratorImpl constructor 10/27610/3
authorRobert Varga <rovarga@cisco.com>
Tue, 29 Sep 2015 18:57:43 +0000 (20:57 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 12 Oct 2015 08:58:03 +0000 (08:58 +0000)
The default verbose constructor has been deprecated in Lithium, remove
it.

Change-Id: Ib54981b117ea1557138ab1820f6f41b7766973cc
Signed-off-by: Robert Varga <rovarga@cisco.com>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/BindingGeneratorImpl.java
binding/mdsal-binding-java-api-generator/src/test/java/org/opendaylight/yangtools/sal/java/api/generator/stmt/parser/retest/BaseCompilationTest.java
binding/mdsal-binding-java-api-generator/src/test/java/org/opendaylight/yangtools/sal/java/api/generator/stmt/parser/retest/ClassCodeGeneratorTest.java
binding/mdsal-binding-java-api-generator/src/test/java/org/opendaylight/yangtools/sal/java/api/generator/test/BaseCompilationTest.java
binding/mdsal-binding-java-api-generator/src/test/java/org/opendaylight/yangtools/sal/java/api/generator/test/ClassCodeGeneratorTest.java

index 3aaee320b4eda4230a503327b0487484e1e3cf19..0da3bb7b8b0a380ff78b57b8d4b235a751836af3 100644 (file)
@@ -154,16 +154,6 @@ public class BindingGeneratorImpl implements BindingGenerator {
      */
     private SchemaContext schemaContext;
 
-    /**
-     * Create a new binding generator with verboe comments.
-     *
-     * @deprecated Use {@link #BindingGeneratorImpl(boolean)} instead.
-     */
-    @Deprecated
-    public BindingGeneratorImpl() {
-        this(true);
-    }
-
     /**
      * Create a new binding generator.
      *
index 8b01e891b9d0d48fa118495f940c6dcf6b5128cc..8c1e94df9f4ccbb990ffbf107566a14b52b82675 100644 (file)
@@ -8,8 +8,10 @@
 package org.opendaylight.yangtools.sal.java.api.generator.stmt.parser.retest;
 
 import static org.junit.Assert.assertTrue;
-import static org.opendaylight.yangtools.sal.java.api.generator.stmt.parser.retest.CompilationTestUtils.*;
-
+import static org.opendaylight.yangtools.sal.java.api.generator.stmt.parser.retest.CompilationTestUtils.COMPILER_OUTPUT_DIR;
+import static org.opendaylight.yangtools.sal.java.api.generator.stmt.parser.retest.CompilationTestUtils.GENERATOR_OUTPUT_DIR;
+import static org.opendaylight.yangtools.sal.java.api.generator.stmt.parser.retest.CompilationTestUtils.TEST_DIR;
+import static org.opendaylight.yangtools.sal.java.api.generator.stmt.parser.retest.CompilationTestUtils.deleteTestDir;
 import org.junit.Before;
 import org.junit.BeforeClass;
 import org.opendaylight.yangtools.sal.binding.generator.api.BindingGenerator;
@@ -30,7 +32,7 @@ public abstract class BaseCompilationTest {
 
     @Before
     public void init() {
-        bindingGenerator = new BindingGeneratorImpl();
+        bindingGenerator = new BindingGeneratorImpl(true);
     }
 
 }
index f955706d0998f0eb40291ed8ba30193d0b701dea..d351fdc750360a09e02bf16bfcc726974766851f 100644 (file)
@@ -11,10 +11,6 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
-
-import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
-import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
-
 import java.io.File;
 import java.io.IOException;
 import java.net.URISyntaxException;
@@ -34,6 +30,8 @@ import org.opendaylight.yangtools.sal.binding.model.api.type.builder.GeneratedPr
 import org.opendaylight.yangtools.sal.binding.model.api.type.builder.GeneratedTOBuilder;
 import org.opendaylight.yangtools.sal.java.api.generator.TOGenerator;
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
+import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
 
 public class ClassCodeGeneratorTest {
 
@@ -52,7 +50,7 @@ public class ClassCodeGeneratorTest {
         final SchemaContext context = RetestUtils.parseYangSources(testModels);
 
         assertNotNull(context);
-        final BindingGenerator bindingGen = new BindingGeneratorImpl();
+        final BindingGenerator bindingGen = new BindingGeneratorImpl(true);
         final List<Type> genTypes = bindingGen.generateTypes(context);
 
         assertTrue(genTypes != null);
index 8d8e843f255b3b7150a21674e76e3250a2832bf3..2d95469304b602820e6f3fab9ad219b3a9467adc 100644 (file)
@@ -8,8 +8,10 @@
 package org.opendaylight.yangtools.sal.java.api.generator.test;
 
 import static org.junit.Assert.assertTrue;
-import static org.opendaylight.yangtools.sal.java.api.generator.test.CompilationTestUtils.*;
-
+import static org.opendaylight.yangtools.sal.java.api.generator.test.CompilationTestUtils.COMPILER_OUTPUT_DIR;
+import static org.opendaylight.yangtools.sal.java.api.generator.test.CompilationTestUtils.GENERATOR_OUTPUT_DIR;
+import static org.opendaylight.yangtools.sal.java.api.generator.test.CompilationTestUtils.TEST_DIR;
+import static org.opendaylight.yangtools.sal.java.api.generator.test.CompilationTestUtils.deleteTestDir;
 import org.junit.Before;
 import org.junit.BeforeClass;
 import org.opendaylight.yangtools.sal.binding.generator.api.BindingGenerator;
@@ -33,7 +35,7 @@ public abstract class BaseCompilationTest {
     @Before
     public void init() {
         parser = new YangParserImpl();
-        bindingGenerator = new BindingGeneratorImpl();
+        bindingGenerator = new BindingGeneratorImpl(true);
     }
 
 }
index e2b65e8d764aa3a8570e25e94cd0881904511bff..ca2854fdff4cf334d543679d0eff68d1356c71a1 100644 (file)
@@ -50,7 +50,7 @@ public class ClassCodeGeneratorTest {
         final SchemaContext context = parser.parseFiles(testModels);
 
         assertNotNull(context);
-        final BindingGenerator bindingGen = new BindingGeneratorImpl();
+        final BindingGenerator bindingGen = new BindingGeneratorImpl(true);
         final List<Type> genTypes = bindingGen.generateTypes(context);
 
         assertTrue(genTypes != null);