Added synchronized to singletons
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / factories / GetAsyncRequestMessageFactory.java
index 15d989b905e0355f7219b033ea38ed326832557e..180f0bdc7705d6e8dbbdef634b01ce6ee8f3baaf 100644 (file)
@@ -23,7 +23,7 @@ public class GetAsyncRequestMessageFactory implements OFSerializer<GetAsyncInput
     /**\r
      * @return singleton factory\r
      */\r
-    public static GetAsyncRequestMessageFactory getInstance() {\r
+    public static synchronized GetAsyncRequestMessageFactory getInstance() {\r
         if (instance == null) {\r
             instance = new GetAsyncRequestMessageFactory();\r
         }\r