Kaydet (Commit) ec0c4ce0 authored tarafından Noel Grandin's avatar Noel Grandin

cid#1326345 Check of thread-shared field evades lock acquisition

Change-Id: I11fc66358c13c6bb1b6f109980384131b38ef18b
üst 1fd4f35f
......@@ -46,15 +46,12 @@ public class DialogFactory {
// singleton
private DialogFactory(XComponentContext xComponentContext) {
this.xComponentContext = xComponentContext;
factory = this;
}
public static void createDialogFactory(XComponentContext xComponentContext) {
if (factory == null) {
synchronized (DialogFactory.class) {
if (factory == null) {
factory = new DialogFactory(xComponentContext);
}
synchronized (DialogFactory.class) {
if (factory == null) {
factory = new DialogFactory(xComponentContext);
}
}
}
......@@ -63,7 +60,6 @@ public class DialogFactory {
if (factory == null) {
throw new java.lang.Exception("DialogFactory not initialized");
}
return factory;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment