Change the way to deal with Limits to simplify wrapper writing and enable couping...
[jabaws.git] / runner / compbio / runner / Util.java
index 189ded7..bfced2a 100644 (file)
@@ -68,7 +68,7 @@ public final class Util {
         */\r
 \r
        public static <T> LimitsManager<T> getLimits(Class<Executable<T>> clazz) {\r
-               LimitsManager<T> limits = new LimitsManager<T>();\r
+               LimitsManager<T> limits = null;\r
                try {\r
                        limits = ConfExecutable.getRunnerLimits(clazz);\r
                } catch (FileNotFoundException e) {\r
@@ -80,7 +80,6 @@ public final class Util {
                        log.warn("IO exception while attempting to read limits for "\r
                                        + clazz + " executable! " + e.getLocalizedMessage(),\r
                                        e.getCause());\r
-                       return null;\r
                }\r
                return limits;\r
        }\r