X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fapi%2Fjmx%2FCommitStatus.java;h=4f9ea7ac6b57521697f85ca7e4cde7930601ad1e;hb=5b16b5aa030d26cbf2c6dc17b3f7a530fbdb987f;hp=bd53bd4e581dc7285fcd8b874fbae177a8cc13c2;hpb=9fb64948564e252018f9b1e13e7cea2c92f991aa;p=controller.git diff --git a/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/jmx/CommitStatus.java b/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/jmx/CommitStatus.java index bd53bd4e58..4f9ea7ac6b 100644 --- a/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/jmx/CommitStatus.java +++ b/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/jmx/CommitStatus.java @@ -7,32 +7,27 @@ */ package org.opendaylight.controller.config.api.jmx; +import javax.annotation.concurrent.Immutable; +import javax.management.ObjectName; import java.beans.ConstructorProperties; import java.util.Collections; import java.util.List; -import javax.annotation.concurrent.Immutable; -import javax.management.ObjectName; - @Immutable public class CommitStatus { private final List newInstances, reusedInstances, recreatedInstances; /** - * - * @param newInstances - * newly created instances - * @param reusedInstances - * reused instances - * @param recreatedInstances - * recreated instances + * @param newInstances newly created instances + * @param reusedInstances reused instances + * @param recreatedInstances recreated instances */ - @ConstructorProperties({ "newInstances", "reusedInstances", - "recreatedInstances" }) + @ConstructorProperties({"newInstances", "reusedInstances", + "recreatedInstances"}) public CommitStatus(List newInstances, - List reusedInstances, - List recreatedInstances) { + List reusedInstances, + List recreatedInstances) { this.newInstances = Collections.unmodifiableList(newInstances); this.reusedInstances = Collections.unmodifiableList(reusedInstances); this.recreatedInstances = Collections @@ -40,7 +35,6 @@ public class CommitStatus { } /** - * * @return list of objectNames representing newly created instances */ public List getNewInstances() { @@ -48,7 +42,6 @@ public class CommitStatus { } /** - * * @return list of objectNames representing reused instances */ public List getReusedInstances() { @@ -56,7 +49,6 @@ public class CommitStatus { } /** - * * @return list of objectNames representing recreated instances */ public List getRecreatedInstances() { @@ -72,7 +64,7 @@ public class CommitStatus { result = prime * result + ((recreatedInstances == null) ? 0 : recreatedInstances - .hashCode()); + .hashCode()); result = prime * result + ((reusedInstances == null) ? 0 : reusedInstances.hashCode()); return result; @@ -80,28 +72,37 @@ public class CommitStatus { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } CommitStatus other = (CommitStatus) obj; if (newInstances == null) { - if (other.newInstances != null) + if (other.newInstances != null) { return false; - } else if (!newInstances.equals(other.newInstances)) + } + } else if (!newInstances.equals(other.newInstances)) { return false; + } if (recreatedInstances == null) { - if (other.recreatedInstances != null) + if (other.recreatedInstances != null) { return false; - } else if (!recreatedInstances.equals(other.recreatedInstances)) + } + } else if (!recreatedInstances.equals(other.recreatedInstances)) { return false; + } if (reusedInstances == null) { - if (other.reusedInstances != null) + if (other.reusedInstances != null) { return false; - } else if (!reusedInstances.equals(other.reusedInstances)) + } + } else if (!reusedInstances.equals(other.reusedInstances)) { return false; + } return true; }