Browse Source

jfinal 4.9

James 5 years ago
parent
commit
a1ff9e8c91
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/main/java/com/jfinal/json/JFinalJsonKit.java

+ 4 - 4
src/main/java/com/jfinal/json/JFinalJsonKit.java

@@ -178,7 +178,7 @@ public class JFinalJsonKit {
 		return new UnknownToJson();
 	}
 	
-	static boolean checkDepth(int depth, JsonResult ret) {
+	public static boolean checkDepth(int depth, JsonResult ret) {
 		if (depth < 0) {
 			ret.addNull();
 			return true;
@@ -290,7 +290,7 @@ public class JFinalJsonKit {
 		}
 	}
 	
-	static void modelAndRecordToJson(Map<String, Object> map, int depth, JsonResult ret) {
+	public static void modelAndRecordToJson(Map<String, Object> map, int depth, JsonResult ret) {
 		Iterator iter = map.entrySet().iterator();
 		boolean first = true;
 		ret.addChar('{');
@@ -332,7 +332,7 @@ public class JFinalJsonKit {
 		}
 	}
 	
-	static void mapToJson(Map<?, ?> map, int depth, JsonResult ret) {
+	public static void mapToJson(Map<?, ?> map, int depth, JsonResult ret) {
 		Iterator iter = map.entrySet().iterator();
 		boolean first = true;
 		ret.addChar('{');
@@ -416,7 +416,7 @@ public class JFinalJsonKit {
 		}
 	}
 	
-	static void iteratorToJson(Iterator it, int depth, JsonResult ret) {
+	public static void iteratorToJson(Iterator it, int depth, JsonResult ret) {
 		boolean first = true;
 		ret.addChar('[');
 		while (it.hasNext()) {