SchemaAwareApplyOperation.checkDeleteApplicable() can be static 56/18856/4
authorRobert Varga <rovarga@cisco.com>
Wed, 22 Apr 2015 15:33:37 +0000 (17:33 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 23 Apr 2015 12:59:22 +0000 (14:59 +0200)
This method does not touch local state, so make it static.

Change-Id: I973fb25e4989c7969ddb5df18e2d683d2cbc15ef
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/SchemaAwareApplyOperation.java

index ada5798e98dbdd255dee0d2e047079eb0324ea08..b771bccadf616380fe98279648c54161d9a93bcb 100644 (file)
@@ -173,7 +173,7 @@ abstract class SchemaAwareApplyOperation extends ModificationApplyOperation {
         }
     }
 
-    private void checkDeleteApplicable(final NodeModification modification, final Optional<TreeNode> current) {
+    private static void checkDeleteApplicable(final NodeModification modification, final Optional<TreeNode> current) {
         // Delete is always applicable, we do not expose it to subclasses
         if (current.isPresent()) {
             LOG.trace("Delete operation turned to no-op on missing node {}", modification);