Skip to content

Commit 68d94d4

Browse files
committed
Using Arrays.toString() to deal with methods array
1 parent 3c90844 commit 68d94d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

APIJSONORM/src/main/java/apijson/orm/AbstractFunctionParser.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public static Object invoke(@NotNull AbstractFunctionParser parser, @NotNull Str
167167
String[] methods = StringUtil.split(row.getString("methods"));
168168
List<String> ml = methods == null || methods.length <= 0 ? null : Arrays.asList(methods);
169169
if (ml != null && ml.contains(parser.getMethod().toString()) == false) {
170-
throw new UnsupportedOperationException("不允许 method = " + parser.getMethod() + " 的请求调用远程函数 " + fb.getMethod() + " ! 必须满足 method 在 " + methods + "内 !");
170+
throw new UnsupportedOperationException("不允许 method = " + parser.getMethod() + " 的请求调用远程函数 " + fb.getMethod() + " ! 必须满足 method 在 " + Arrays.toString(methods) + "内 !");
171171
}
172172

173173
try {

0 commit comments

Comments
 (0)