Speed up SchemaTracker.startContainerNode()
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / codec / SchemaTracker.java
index e6befe87631d989e8f2c30177cd9aec0cf2355d3..aec921d926382504084850531d694bd0a0b01519 100644 (file)
@@ -231,7 +231,7 @@ public final class SchemaTracker {
     public SchemaNode startContainerNode(final NodeIdentifier name) {
         LOG.debug("Enter container {}", name);
         final SchemaNode schema = getSchema(name);
-        final boolean isAllowed = schema instanceof ContainerLike | schema instanceof NotificationDefinition;
+        final boolean isAllowed = schema instanceof ContainerLike || schema instanceof NotificationDefinition;
 
         checkArgument(isAllowed, "Node %s is not a container nor a notification", schema);
         schemaStack.push(schema);