From: Aron Roberts Date: Tue, 24 Apr 2012 21:54:47 +0000 (-0700) Subject: CSPACE-5115,CSPACE-4983: Use separate static array for returning list of procedural... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=36a09470b9be18abe026c1e5b9201e1e84bf2c84;p=tmp%2Fjakarta-migration.git 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. --- 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; }