Bug-731: Fixed few major Sonar warnings
[bgpcep.git] / bgp / parser-impl / src / main / java / org / opendaylight / protocol / bgp / parser / impl / message / BGPUpdateMessageParser.java
index b0c266fe73920c80ffd7edf32d8cccd0d2303d65..2fbc681c233e5823a0a1ffd849532c4bcf1b9a13 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2013 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,
@@ -101,7 +101,7 @@ public class BGPUpdateMessageParser implements MessageParser, MessageSerializer
 
     @Override
     public void serializeMessage(final Notification message, final ByteBuf bytes) {
-        Preconditions.checkArgument(message != null && message instanceof Update, "BGPUpdate message cannot be null");
+        Preconditions.checkArgument(message instanceof Update, "BGPUpdate message cannot be null");
         LOG.trace("Started serializing update message: {}", message);
         final Update update = (Update) message;