Hide RootStatementContext 37/105237/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 4 Apr 2023 22:16:39 +0000 (00:16 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 4 Apr 2023 22:47:38 +0000 (00:47 +0200)
This class is not used anywhere and its capabilities are already
available via RootStmtContext. Hide it from the outside world, which
fixes a module-related warning.

Change-Id: Ia234accce1814004224a7fb58ad3886fbe1ff4ef
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
parser/yang-parser-reactor/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/RootStatementContext.java

index 4e084c861637c0bc418df180722983afac41e36c..6a9be59ba3d8ea5ca703f56cf9228764076aed30 100644 (file)
@@ -43,9 +43,9 @@ import org.slf4j.LoggerFactory;
  * Root statement class for a YANG source. All statements defined in that YANG source are mapped underneath an instance
  * of this class, hence recursive lookups from them cross this class.
  */
-public final class RootStatementContext<A, D extends DeclaredStatement<A>, E extends EffectiveStatement<A, D>>
+final class RootStatementContext<A, D extends DeclaredStatement<A>, E extends EffectiveStatement<A, D>>
         extends AbstractResumedStatement<A, D, E> implements RootStmtContext.Mutable<A, D, E> {
-    public static final YangVersion DEFAULT_VERSION = YangVersion.VERSION_1;
+    static final YangVersion DEFAULT_VERSION = YangVersion.VERSION_1;
 
     private static final Logger LOG = LoggerFactory.getLogger(RootStatementContext.class);
     // These namespaces are well-known and not needed after the root is cleaned up