Make buildEffectiveModel() non-default 74/81174/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Mar 2019 11:39:50 +0000 (12:39 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Mar 2019 11:40:22 +0000 (12:40 +0100)
This addresses a previous FIXME.

Change-Id: I2a112116ebca2a8fb375a2f812cbac1187003ac0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-api/src/main/java/org/opendaylight/yangtools/yang/model/parser/api/YangParser.java

index a71cafe3fa27b1f4cc149d024dafc8332183103e..d0e5dccd58442be5c9c4f8802f45e631811a6649 100644 (file)
@@ -146,10 +146,7 @@ public interface YangParser {
      * @return Effective module statements indexed by their QNameModule.
      * @throws YangSyntaxErrorException When a syntactic error is encountered.
      */
-    // FIXME: 3.0.0: Make this method non-default
-    default Map<QNameModule, ModuleEffectiveStatement> buildEffectiveModel() throws YangParserException {
-        throw new UnsupportedOperationException(getClass() + " does not implement buildEffectiveModel()");
-    }
+    Map<QNameModule, ModuleEffectiveStatement> buildEffectiveModel() throws YangParserException;
 
     /**
      * Build effective {@link SchemaContext}.