X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsamples%2Fclustering-test-app%2Fprovider%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fclustering%2Fit%2Fprovider%2FCarEntryDataTreeCommitCohort.java;h=270015956294336da2be6cc6c1763dc228a6e28a;hp=1bc6581b91231daf0073df21b2277d2da015c13b;hb=7d53e7984cfbd69fdf78ad07112974aa3e56fc55;hpb=640c1a8a610811c7d9b7d744d39fd37197fa3b63 diff --git a/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/CarEntryDataTreeCommitCohort.java b/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/CarEntryDataTreeCommitCohort.java index 1bc6581b91..2700159562 100644 --- a/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/CarEntryDataTreeCommitCohort.java +++ b/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/CarEntryDataTreeCommitCohort.java @@ -39,10 +39,9 @@ public class CarEntryDataTreeCommitCohort implements DOMDataTreeCommitCohort { private static final QName YEAR_QNAME = QName.create(Cars.QNAME, "year").intern(); private static final NodeIdentifier YEAR_NODE_ID = new NodeIdentifier(YEAR_QNAME); - @SuppressWarnings("unchecked") @Override - public CheckedFuture canCommit(Object txId, - DOMDataTreeCandidate candidate, SchemaContext ctx) { + public CheckedFuture canCommit(final Object txId, + final DOMDataTreeCandidate candidate, final SchemaContext ctx) { // Simple data validation - verify the year, if present, is >= 1990 @@ -77,6 +76,6 @@ public class CarEntryDataTreeCommitCohort implements DOMDataTreeCommitCohort { // Return the noop PostCanCommitStep as we're only validating input data and not participating in the // remaining 3PC stages (pre-commit and commit). - return (CheckedFuture) PostCanCommitStep.NOOP_SUCCESS_FUTURE; + return PostCanCommitStep.NOOP_SUCCESS_FUTURE; } }