multipart request message updated
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / factories / RoleRequestInputMessageFactory.java
index 04200d117f8aeda7af7f68e44d838042a2ad0d95..6a4d43f800668e93d222e6eb312a60fd319b239f 100644 (file)
@@ -15,7 +15,7 @@ public class RoleRequestInputMessageFactory implements OFSerializer<RoleRequestI
 \r
     /** Code type of RoleRequest message */\r
     public static final byte MESSAGE_TYPE = 24;\r
-    private static final int MESSAGE_LENGTH = 8;\r
+    private static final int MESSAGE_LENGTH = 24;\r
     private static final byte PADDING_IN_ROLE_REQUEST_MESSAGE = 4;\r
     private static RoleRequestInputMessageFactory instance;\r
     \r
@@ -26,7 +26,7 @@ public class RoleRequestInputMessageFactory implements OFSerializer<RoleRequestI
     /**\r
      * @return singleton factory\r
      */\r
-    public static RoleRequestInputMessageFactory getInstance() {\r
+    public static synchronized RoleRequestInputMessageFactory getInstance() {\r
         if (instance == null) {\r
             instance = new RoleRequestInputMessageFactory();\r
         }\r