From 36a09470b9be18abe026c1e5b9201e1e84bf2c84 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Tue, 24 Apr 2012 14:54:47 -0700 Subject: [PATCH] CSPACE-5115,CSPACE-4983: Use separate static array for returning list of procedural record types, in CSPACE-4983 refObjs-related workaround, per Patrick's comment on CSPACE-5115. --- .../common/context/ServiceBindingUtils.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/services/common/src/main/java/org/collectionspace/services/common/context/ServiceBindingUtils.java b/services/common/src/main/java/org/collectionspace/services/common/context/ServiceBindingUtils.java index 06c246bea..4070c845e 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/context/ServiceBindingUtils.java +++ b/services/common/src/main/java/org/collectionspace/services/common/context/ServiceBindingUtils.java @@ -195,7 +195,8 @@ public class ServiceBindingUtils { } private static ArrayList commonServiceTypes = null; - + private static ArrayList commonProcedureServiceTypes = null; + public static ArrayList getCommonServiceTypes() { if(commonServiceTypes == null) { commonServiceTypes = new ArrayList(); @@ -215,11 +216,11 @@ public class ServiceBindingUtils { // make the effect of the workaround more explicit, and in part to avoid // breaking the use of the getCommonServiceTypes method in ServiceGroups. public static ArrayList getCommonProcedureServiceTypes() { - if(commonServiceTypes == null) { - commonServiceTypes = new ArrayList(); - commonServiceTypes.add(SERVICE_TYPE_PROCEDURE); - } - return commonServiceTypes; + if(commonProcedureServiceTypes == null) { + commonProcedureServiceTypes = new ArrayList(); + commonProcedureServiceTypes.add(SERVICE_TYPE_PROCEDURE); + } + return commonProcedureServiceTypes; } -- 2.47.3