Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix FinalModifierException due to BindingToNormalizedNodeCodec final
[controller.git]
/
opendaylight
/
md-sal
/
sal-binding-broker
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
md
/
sal
/
binding
/
compat
/
NotifyTask.java
diff --git
a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/NotifyTask.java
b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/NotifyTask.java
index 345ec6218997bb0c57ac85dbda44024ac97f54fb..59be9af829df707d51cbffa2568ebf0fcca8711b 100644
(file)
--- a/
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/NotifyTask.java
+++ b/
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/NotifyTask.java
@@
-7,13
+7,12
@@
*/
package org.opendaylight.controller.md.sal.binding.compat;
*/
package org.opendaylight.controller.md.sal.binding.compat;
+import com.google.common.base.Objects;
+import com.google.common.base.Preconditions;
import org.opendaylight.yangtools.yang.binding.Notification;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.opendaylight.yangtools.yang.binding.Notification;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import com.google.common.base.Objects;
-import com.google.common.base.Preconditions;
-
class NotifyTask implements Runnable {
private static final Logger LOG = LoggerFactory.getLogger(NotifyTask.class);
class NotifyTask implements Runnable {
private static final Logger LOG = LoggerFactory.getLogger(NotifyTask.class);
@@
-62,23
+61,30
@@
class NotifyTask implements Runnable {
@Override
public boolean equals(final Object obj) {
@Override
public boolean equals(final Object obj) {
- if (this == obj)
+ if (this == obj)
{
return true;
return true;
- if (obj == null)
+ }
+ if (obj == null) {
return false;
return false;
- if (getClass() != obj.getClass())
+ }
+ if (getClass() != obj.getClass()) {
return false;
return false;
- NotifyTask other = (NotifyTask) obj;
+ }
+ final NotifyTask other = (NotifyTask) obj;
if (registration == null) {
if (registration == null) {
- if (other.registration != null)
+ if (other.registration != null)
{
return false;
return false;
- } else if (!registration.equals(other.registration))
+ }
+ } else if (!registration.equals(other.registration)) {
return false;
return false;
+ }
if (notification == null) {
if (notification == null) {
- if (other.notification != null)
+ if (other.notification != null)
{
return false;
return false;
- } else if (!notification.equals(other.notification))
+ }
+ } else if (!notification.equals(other.notification)) {
return false;
return false;
+ }
return true;
}
return true;
}