X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fmanager%2Fimpl%2FTransactionIdentifier.java;h=ac056a85ae399e194522e1f18bdb706e49202746;hp=28bd613648d31bfcb6072737b065ceaa07bf7390;hb=f43b01b81319959b1907e3e04537f5169e7f33d8;hpb=2e7347fdc0eb7734ff59a4f902227a93ab6afece diff --git a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/TransactionIdentifier.java b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/TransactionIdentifier.java index 28bd613648..ac056a85ae 100644 --- a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/TransactionIdentifier.java +++ b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/TransactionIdentifier.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2013, 2017 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, @@ -13,7 +13,7 @@ public class TransactionIdentifier implements Identifier { private static final long serialVersionUID = 1L; private final String name; - public TransactionIdentifier(String name) { + public TransactionIdentifier(final String name) { this.name = name; } @@ -27,16 +27,19 @@ public class TransactionIdentifier implements Identifier { } @Override - public boolean equals(Object o) { - if (this == o) + public boolean equals(final Object object) { + if (this == object) { return true; - if (o == null || getClass() != o.getClass()) + } + if (object == null || getClass() != object.getClass()) { return false; + } - TransactionIdentifier that = (TransactionIdentifier) o; + TransactionIdentifier that = (TransactionIdentifier) object; - if (name != null ? !name.equals(that.name) : that.name != null) + if (name != null ? !name.equals(that.name) : that.name != null) { return false; + } return true; }