Added synchronized to singletons
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / deserialization / factories / GetAsyncReplyMessageFactory.java
index 5d401bcde6c083bcc95b29f4fde84b194b83ac18..f2ef8191b9a3e6a806779b63f43b636706dabe0f 100644 (file)
@@ -33,7 +33,7 @@ public class GetAsyncReplyMessageFactory implements OFDeserializer<GetAsyncOutpu
     /**\r
      * @return singleton factory\r
      */\r
-    public static GetAsyncReplyMessageFactory getInstance() {\r
+    public static synchronized GetAsyncReplyMessageFactory getInstance() {\r
         if (instance == null) {\r
             instance = new GetAsyncReplyMessageFactory();\r
         }\r