Make AbstractNetconfOperation.handle() final
[netconf.git] / protocol / netconf-server / src / main / java / org / opendaylight / netconf / server / api / operations / AbstractNetconfOperation.java
index 42b6200869e6745a8e4a0469a369358cdb80f9ab..2d3c8b53fe098325151d37a3b4e7eaa74a7a0281 100644 (file)
@@ -33,9 +33,8 @@ public abstract class AbstractNetconfOperation implements NetconfOperation {
     }
 
     @Override
-    public HandlingPriority canHandle(final Document message) throws DocumentedException {
-        OperationNameAndNamespace operationNameAndNamespace = null;
-        operationNameAndNamespace = new OperationNameAndNamespace(message);
+    public final HandlingPriority canHandle(final Document message) throws DocumentedException {
+        final var operationNameAndNamespace = new OperationNameAndNamespace(message);
         return canHandle(operationNameAndNamespace.getOperationName(), operationNameAndNamespace.getNamespace());
     }