Clean pcep/base-parser code
[bgpcep.git] / pcep / base-parser / src / main / java / org / opendaylight / protocol / pcep / parser / message / PCEPStartTLSMessageParser.java
index 3d37506f341d93faede692a1cea2192afd9a4cd9..a7e4dad5c601e82c4f57a69dacf5f2604a97af31 100644 (file)
@@ -32,12 +32,14 @@ public class PCEPStartTLSMessageParser extends AbstractMessageParser {
 
     @Override
     public void serializeMessage(final Message message, final ByteBuf out) {
-        Preconditions.checkArgument(message instanceof StartTlsMessage, "Wrong instance of Message. Passed instance of %s. Need StartTlsMessage.", message.getClass());
+        Preconditions.checkArgument(message instanceof StartTlsMessage,
+                "Wrong instance of Message. Passed instance of %s. Need StartTlsMessage.", message.getClass());
         MessageUtil.formatMessage(TYPE, Unpooled.EMPTY_BUFFER, out);
     }
 
     @Override
-    protected StartTlsMessage validate(final List<Object> objects, final List<Message> errors) throws PCEPDeserializerException {
+    protected StartTlsMessage validate(final List<Object> objects, final List<Message> errors)
+            throws PCEPDeserializerException {
         if (objects != null && !objects.isEmpty()) {
             throw new PCEPDeserializerException("StartTLS message should not contain any objects.");
         }