summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/utils/LocalObjectLoader.java
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2014-08-25 13:53:33 +0200
committerAndrew Branson <andrew.branson@cern.ch>2014-08-25 13:53:33 +0200
commitf7df981d031e360b379b86d9aefdde15b918b21f (patch)
tree44f08a278514dee9be01ffba67da8db85547d907 /src/main/java/com/c2kernel/utils/LocalObjectLoader.java
parentbdb708127a7f0e1ef065a49377341843e12672cb (diff)
Require integers for all resource versions
Diffstat (limited to 'src/main/java/com/c2kernel/utils/LocalObjectLoader.java')
-rw-r--r--src/main/java/com/c2kernel/utils/LocalObjectLoader.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/c2kernel/utils/LocalObjectLoader.java b/src/main/java/com/c2kernel/utils/LocalObjectLoader.java
index 63bb3c2..3025f2d 100644
--- a/src/main/java/com/c2kernel/utils/LocalObjectLoader.java
+++ b/src/main/java/com/c2kernel/utils/LocalObjectLoader.java
@@ -22,7 +22,7 @@ public class LocalObjectLoader {
return (ItemProxy)Gateway.getProxyManager().getProxy(defPath);
}
- static public String getScript(String scriptName, String scriptVersion) throws ObjectNotFoundException {
+ static public String getScript(String scriptName, int scriptVersion) throws ObjectNotFoundException {
Logger.msg(5, "Loading script "+scriptName+" v"+scriptVersion);
try {
ItemProxy script = loadLocalObjectDef("/desc/Script/", scriptName);
@@ -65,7 +65,7 @@ public class LocalObjectLoader {
* @return ActivityDef
* @throws ObjectNotFoundException - When activity or version does not exist
*/
- static public ActivityDef getActDef(String actName, String actVersion) throws ObjectNotFoundException, InvalidDataException {
+ static public ActivityDef getActDef(String actName, int actVersion) throws ObjectNotFoundException, InvalidDataException {
Logger.msg(5, "Loading activity def "+actName+" v"+actVersion);
return actCache.get(actName, actVersion);
}