Skip to content

Commit 9fd3127

Browse files
authored
Simplify the code and misspelled word, thx to aozeyu #25
#25
2 parents 6e2619f + f95ab92 commit 9fd3127

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/apijson/framework/APIJSONObjectParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public class APIJSONObjectParser<T extends Object> extends AbstractObjectParser<
4242
* @throws Exception
4343
*/
4444
public APIJSONObjectParser(HttpSession session, @NotNull JSONObject request, String parentPath, SQLConfig<T> arrayConfig
45-
, boolean isSubquery, boolean isTable, boolean isArrayMainTable) throws Exception {
46-
super(request, parentPath, arrayConfig, isSubquery, isTable, isArrayMainTable);
45+
, boolean isSubQuery, boolean isTable, boolean isArrayMainTable) throws Exception {
46+
super(request, parentPath, arrayConfig, isSubQuery, isTable, isArrayMainTable);
4747
}
4848

4949
@Override

src/main/java/apijson/framework/AssertUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static void assertEqual(Object a, Object b, String errorMessage) {
2929
return;
3030
}
3131

32-
if (a == null || b == null || a.equals(b) == false) {
32+
if (a == null || !a.equals(b)) {
3333
throw new AssertionError(errorMessage == null ? "assert fail: a != b" : errorMessage);
3434
}
3535
}

0 commit comments

Comments
 (0)