From bb82f5ed95467ede726afc5c899c9222d89ff082 Mon Sep 17 00:00:00 2001 From: Nathan Baltzell Date: Wed, 14 Oct 2026 18:53:17 -0400 Subject: [PATCH] simply, null's not allowed --- .../src/main/java/org/jlab/utils/CLASResources.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/common-tools/clas-io/src/main/java/org/jlab/utils/CLASResources.java b/common-tools/clas-io/src/main/java/org/jlab/utils/CLASResources.java index 3268fb7ae4..6e06bd2270 100644 --- a/common-tools/clas-io/src/main/java/org/jlab/utils/CLASResources.java +++ b/common-tools/clas-io/src/main/java/org/jlab/utils/CLASResources.java @@ -11,12 +11,10 @@ public class CLASResources { private static volatile SchemaFactory FULL_SCHEMA = null; - public static SchemaFactory getFullSchema() { - synchronized (FULL_SCHEMA) { - if (FULL_SCHEMA == null) { - FULL_SCHEMA = new SchemaFactory(); - FULL_SCHEMA.initFromDirectory(getResourcePath("etc/bankdefs/hipo4")); - } + public static synchronized SchemaFactory getFullSchema() { + if (FULL_SCHEMA == null) { + FULL_SCHEMA = new SchemaFactory(); + FULL_SCHEMA.initFromDirectory(getResourcePath("etc/bankdefs/hipo4")); } SchemaFactory s = new SchemaFactory(); s.copy(FULL_SCHEMA);