mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-25 21:43:49 +00:00
re-enabled enum settings de-serialization again after having moved to com.sap.sse bundle
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user