From 67c8dd1035cdaa9987844f338a05c639e1f1e491 Mon Sep 17 00:00:00 2001 From: srosse <none@none> Date: Fri, 13 May 2016 12:25:03 +0200 Subject: [PATCH] no-jira: fix issue with oracle java compiler --- .../java/org/olat/modules/ModuleconfigurationFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/olat/modules/ModuleconfigurationFragment.java b/src/main/java/org/olat/modules/ModuleconfigurationFragment.java index 3a13748179f..3aeebf598d5 100644 --- a/src/main/java/org/olat/modules/ModuleconfigurationFragment.java +++ b/src/main/java/org/olat/modules/ModuleconfigurationFragment.java @@ -164,7 +164,7 @@ public class ModuleconfigurationFragment implements IModuleConfiguration { X val = null; String name = key.name(); if(klass == Boolean.class) { - Boolean b = (key.hasDefault() ? config.getBooleanSafe(key(name), (boolean)(key.getDefault())) : config.getBooleanEntry(key(name))); + Boolean b = (key.hasDefault() ? config.getBooleanSafe(key(name), (Boolean)(key.getDefault())) : config.getBooleanEntry(key(name))); val = klass.cast(b); } else if (klass == Float.class) { Float f = config.getFloatEntry(key(name)); @@ -173,7 +173,7 @@ public class ModuleconfigurationFragment implements IModuleConfiguration { if(!key.hasDefault()) { throw new IllegalArgumentException("Integer keys MUST define a default value"); } - Integer i = config.getIntegerSafe(key(name), (int)key.getDefault()); + Integer i = config.getIntegerSafe(key(name), (Integer)key.getDefault()); val = klass.cast(i); } else if (klass == Date.class) { Date d = config.getDateValue(key(name)); -- GitLab