Added synchronized to singletons
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / factories / SetAsyncInputMessageFactory.java
index d72e25fc446fbc288901fa629a74f6e97c97c1b2..1182938bbef7af873b2348a8c66a29668fc6ea3e 100644 (file)
@@ -31,7 +31,7 @@ public class SetAsyncInputMessageFactory implements OFSerializer<SetAsyncInput>
     /**\r
      * @return singleton factory\r
      */\r
-    public static SetAsyncInputMessageFactory getInstance() {\r
+    public static synchronized SetAsyncInputMessageFactory getInstance() {\r
         if (instance == null) {\r
             instance = new SetAsyncInputMessageFactory();\r
         }\r