Skip to content
Snippets Groups Projects
Commit 67c8dd10 authored by srosse's avatar srosse
Browse files

no-jira: fix issue with oracle java compiler

parent 406470e1
No related branches found
No related tags found
No related merge requests found
...@@ -164,7 +164,7 @@ public class ModuleconfigurationFragment implements IModuleConfiguration { ...@@ -164,7 +164,7 @@ public class ModuleconfigurationFragment implements IModuleConfiguration {
X val = null; X val = null;
String name = key.name(); String name = key.name();
if(klass == Boolean.class) { 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); val = klass.cast(b);
} else if (klass == Float.class) { } else if (klass == Float.class) {
Float f = config.getFloatEntry(key(name)); Float f = config.getFloatEntry(key(name));
...@@ -173,7 +173,7 @@ public class ModuleconfigurationFragment implements IModuleConfiguration { ...@@ -173,7 +173,7 @@ public class ModuleconfigurationFragment implements IModuleConfiguration {
if(!key.hasDefault()) { if(!key.hasDefault()) {
throw new IllegalArgumentException("Integer keys MUST define a default value"); 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); val = klass.cast(i);
} else if (klass == Date.class) { } else if (klass == Date.class) {
Date d = config.getDateValue(key(name)); Date d = config.getDateValue(key(name));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment