Fixup breakage introduced by 0.6.0 yang tools
[bgpcep.git] / pcep / api / src / main / java / org / opendaylight / protocol / pcep / message / PCEPUpdateRequestMessage.java
index 09eb16bddadd0d33d4840062392ab4573e42c74a..32fba964fc984392c3477247779ce51d5c14c80f 100644 (file)
@@ -35,13 +35,15 @@ public class PCEPUpdateRequestMessage implements Message {
         */
        public PCEPUpdateRequestMessage(final List<CompositeUpdateRequestObject> updateRequests) {
                this.objects = Lists.newArrayList();
-               if (updateRequests != null)
+               if (updateRequests != null) {
                        for (final CompositeUpdateRequestObject curo : updateRequests) {
                                this.objects.addAll(curo.getCompositeAsList());
                        }
+               }
 
-               if (updateRequests == null || updateRequests.isEmpty())
+               if (updateRequests == null || updateRequests.isEmpty()) {
                        throw new IllegalArgumentException("At least one CompositeUpdateRequestObject is mandatory.");
+               }
                this.updateRequests = updateRequests;
        }
 
@@ -68,18 +70,23 @@ public class PCEPUpdateRequestMessage implements Message {
 
        @Override
        public boolean equals(final Object obj) {
-               if (this == obj)
+               if (this == obj) {
                        return true;
-               if (!super.equals(obj))
+               }
+               if (!super.equals(obj)) {
                        return false;
-               if (this.getClass() != obj.getClass())
+               }
+               if (this.getClass() != obj.getClass()) {
                        return false;
+               }
                final PCEPUpdateRequestMessage other = (PCEPUpdateRequestMessage) obj;
                if (this.updateRequests == null) {
-                       if (other.updateRequests != null)
+                       if (other.updateRequests != null) {
                                return false;
-               } else if (!this.updateRequests.equals(other.updateRequests))
+                       }
+               } else if (!this.updateRequests.equals(other.updateRequests)) {
                        return false;
+               }
                return true;
        }
 
@@ -91,4 +98,9 @@ public class PCEPUpdateRequestMessage implements Message {
                builder.append("]");
                return builder.toString();
        }
+
+       @Override
+       public Class<Message> getImplementedInterface() {
+               return Message.class;
+       }
 }