commit | a94137e2a50ae171f18ffaed164d35568909cd56 | [log] [tgz] |
---|---|---|
author | gkarasiu <gkarasiu> | Tue Oct 21 12:45:41 2008 +0000 |
committer | gkarasiu <gkarasiu> | Tue Oct 21 12:45:41 2008 +0000 |
tree | c9c6ed09188ebb5608d9b0a0658c4867eaf3c159 | |
parent | 96b1c3ee08300da851c3697f468ffa874e2913b7 [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(){} /**