9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 02:29:14 +00:00

normalize

This commit is contained in:
Dan Macbook
2020-08-12 13:44:34 -04:00
parent ce0249f28e
commit 1f63b47500
10 changed files with 120 additions and 1127 deletions

View File

@@ -837,7 +837,7 @@ public class ProjectManager {
JSONObject jj = j.getJSONObject(i);
try {
Field f = o.getClass().getField(i);
Field f = o.getClass().getDeclaredField(i);
if (f.isEnumConstant() || f.getType().isEnum() || f.getType().isPrimitive()) {
a.add("ERROR: Unexptected type: " + i + " into " + f.getType()
@@ -856,7 +856,8 @@ public class ProjectManager {
}
catch (Throwable e) {
a.add("WARN: Unexptected Field: " + i + " in " + o.getClass());
a.add("WARN: Unexptected Field: " + i + " in " + o.getClass().getSimpleName() + " from "
+ m.getAbsolutePath() + " " + e.getClass().getSimpleName() + " " + e.getMessage());
}
}
@@ -902,7 +903,7 @@ public class ProjectManager {
for (String i : j.keySet()) {
try {
Field f = o.getClass().getField(i);
Field f = o.getClass().getDeclaredField(i);
if (f == null) {
throw new NullPointerException();
@@ -911,7 +912,7 @@ public class ProjectManager {
catch (Throwable e) {
a.add("WARN: Unreconized Field (key): " + i + " in " + file.getAbsolutePath()
+ ". Delete this key/value pair");
+ ". Delete this key/value pair: " + o.getClass().getSimpleName());
}
}