Skip to content

Commit 0ac85ff

Browse files
authored
Update DefaultChemObjectBuilder.java
Fix lazy init
1 parent 24b25ea commit 0ac85ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/data/src/main/java/org/openscience/cdk/DefaultChemObjectBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ public void modify(DoubleBondStereochemistry instance) {
224224
public static IChemObjectBuilder getInstance() {
225225
IChemObjectBuilder result = instance;
226226
if (result == null) {
227-
result = instance;
228227
synchronized (LOCK) {
228+
result = instance;
229229
if (result == null) {
230230
instance = result = new DefaultChemObjectBuilder();
231231
}

0 commit comments

Comments
 (0)