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