Add JSONRestconfService impl for the restconf Draft18 impl
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / netconf / sal / restconf / impl / BatchedExistenceCheck.java
index 89337cc99f89961dc6e7f0978a773619ba5c23cf..a1765e56d822ba0f13ec02add02ff21586e16bb0 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2017 Pantheon Technologies, s.r.o. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -23,8 +23,8 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
 
 final class BatchedExistenceCheck {
-    private static final AtomicIntegerFieldUpdater<BatchedExistenceCheck> UPDATER = AtomicIntegerFieldUpdater.newUpdater(
-        BatchedExistenceCheck.class, "outstanding");
+    private static final AtomicIntegerFieldUpdater<BatchedExistenceCheck> UPDATER =
+            AtomicIntegerFieldUpdater.newUpdater(BatchedExistenceCheck.class, "outstanding");
 
     private final SettableFuture<Entry<YangInstanceIdentifier, ReadFailedException>> future = SettableFuture.create();
 
@@ -49,12 +49,12 @@ final class BatchedExistenceCheck {
                 }
 
                 @Override
-                public void onFailure(final Throwable t) {
+                public void onFailure(final Throwable throwable) {
                     final Exception e;
-                    if (t instanceof Exception) {
-                        e = (Exception) t;
+                    if (throwable instanceof Exception) {
+                        e = (Exception) throwable;
                     } else {
-                        e = new ExecutionException(t);
+                        e = new ExecutionException(throwable);
                     }
 
                     ret.complete(path, ReadFailedException.MAPPER.apply(e));