summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/utils
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2013-10-27 21:06:45 +0100
committerAndrew Branson <andrew.branson@cern.ch>2013-10-27 21:06:45 +0100
commit79bdf4aa01fb9ca991de032733919923a19192c8 (patch)
tree3804d7f5b9fc2858bb27f7649d46f275613afd41 /src/main/java/com/c2kernel/utils
parent30cd736670a579985890d8c2dfe363bacbad7568 (diff)
3.0-SNAPSHOT
Do Integer.parseInt(propObj.toString()) to tolerate String or Integer version properties.
Diffstat (limited to 'src/main/java/com/c2kernel/utils')
-rw-r--r--src/main/java/com/c2kernel/utils/LocalObjectLoader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/c2kernel/utils/LocalObjectLoader.java b/src/main/java/com/c2kernel/utils/LocalObjectLoader.java
index c17db40..aef7b96 100644
--- a/src/main/java/com/c2kernel/utils/LocalObjectLoader.java
+++ b/src/main/java/com/c2kernel/utils/LocalObjectLoader.java
@@ -24,7 +24,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);