Browse Source

jfinal 4.9

James 5 years ago
parent
commit
6cd0aba442
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/main/java/com/jfinal/json/JFinalJson.java

+ 6 - 6
src/main/java/com/jfinal/json/JFinalJson.java

@@ -311,12 +311,12 @@ public class JFinalJson extends Json {
 			if (indexOfGet == 0 && methodName.length() > 3) {	// Only getter
 				String attrName = methodName.substring(3);
 				if (!attrName.equals("Class")) {				// Ignore Object.getClass()
-						try {
-							Object value = m.invoke(model);
-							map.put(StrKit.firstCharToLowerCase(attrName), value);
-						} catch (Exception e) {
-							throw new RuntimeException(e.getMessage(), e);
-						}
+					try {
+						Object value = m.invoke(model);
+						map.put(StrKit.firstCharToLowerCase(attrName), value);
+					} catch (Exception e) {
+						throw new RuntimeException(e.getMessage(), e);
+					}
 				}
 			}
 			else {