]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5115,CSPACE-4983: Use separate static array for returning list of procedural...
authorAron Roberts <aron@socrates.berkeley.edu>
Tue, 24 Apr 2012 21:54:47 +0000 (14:54 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Tue, 24 Apr 2012 21:54:47 +0000 (14:54 -0700)
services/common/src/main/java/org/collectionspace/services/common/context/ServiceBindingUtils.java

index 06c246beaf008768ef525d39ca34f59fc5c71059..4070c845e26aa4e2978296cd5f1d7584639d7a90 100644 (file)
@@ -195,7 +195,8 @@ public class ServiceBindingUtils {
     } \r
     \r
     private static ArrayList<String> commonServiceTypes = null;\r
-    \r
+    private static ArrayList<String> commonProcedureServiceTypes = null;\r
+   \r
     public static ArrayList<String> getCommonServiceTypes() {\r
        if(commonServiceTypes == null) {\r
                commonServiceTypes = new ArrayList<String>();\r
@@ -215,11 +216,11 @@ public class ServiceBindingUtils {
     // make the effect of the workaround more explicit, and in part to avoid\r
     // breaking the use of the getCommonServiceTypes method in ServiceGroups.\r
     public static ArrayList<String> getCommonProcedureServiceTypes() {\r
-        if(commonServiceTypes == null) {\r
-               commonServiceTypes = new ArrayList<String>();\r
-               commonServiceTypes.add(SERVICE_TYPE_PROCEDURE);\r
-       }\r
-       return commonServiceTypes;\r
+        if(commonProcedureServiceTypes == null) {\r
+            commonProcedureServiceTypes = new ArrayList<String>();\r
+            commonProcedureServiceTypes.add(SERVICE_TYPE_PROCEDURE);\r
+        }\r
+       return commonProcedureServiceTypes;\r
     }\r
     \r
 \r