re-enabled enum settings de-serialization again after having moved to com.sap.sse bundle

This commit is contained in:
Axel Uhl committed 2015-05-23 01:00:09 +02:00
1 parent 5d29687a02
commit 329654cf2c
1 file changed
+4 -4
@@ -146,11 +146,11 @@ public class SettingsToJsonSerializer {
if (json.containsKey(typePropertyName)) {
String[] typeNameAndClassName = ((String) json.get(typePropertyName)).split("/");
type = SettingType.valueOf(typeNameAndClassName[0]);
// if (typeNameAndClassName.length > 1) {
// clazz = Class.forName(typeNameAndClassName[1]);
// } else {
if (typeNameAndClassName.length > 1) {
clazz = Class.forName(typeNameAndClassName[1]);
} else {
clazz = null;
// }
}
} else {
type = getSettingType(value);
clazz = null;