commit | 832b6e983c456c0560636bc7418f12ba8afed568 | [log] [tgz] |
---|---|---|
author | gkarasiu <gkarasiu> | Tue Oct 21 12:52:56 2008 +0000 |
committer | gkarasiu <gkarasiu> | Tue Oct 21 12:52:56 2008 +0000 |
tree | 350426abbff1ca7c37a2a2e81f995f15b0968e4d | |
parent | 9b7fbb27e1c7d680f4f7ddb0dbe46165c7a7a3be [diff] |
[251529] ValidationFramework getDefault() not thread safe
diff --git a/plugins/org.eclipse.wst.validation/vf2/org/eclipse/wst/validation/ValidationFramework.java b/plugins/org.eclipse.wst.validation/vf2/org/eclipse/wst/validation/ValidationFramework.java index c4c7113..1c26729 100644 --- a/plugins/org.eclipse.wst.validation/vf2/org/eclipse/wst/validation/ValidationFramework.java +++ b/plugins/org.eclipse.wst.validation/vf2/org/eclipse/wst/validation/ValidationFramework.java
@@ -81,10 +81,15 @@ * Answer the singleton, default instance of this class. */ public static ValidationFramework getDefault(){ - if (_me == null)_me = new ValidationFramework(); + if (_me == null)return getDefault2(); return _me; } + private synchronized static ValidationFramework getDefault2(){ + if (_me == null)_me = new ValidationFramework(); + return _me; + } + private ValidationFramework(){} /**