Skip to content

Commit

Permalink
Simplify the code and misspelled word, thx to aozeyu #25
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon authored Mar 12, 2024
2 parents 6e2619f + f95ab92 commit 9fd3127
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/apijson/framework/APIJSONObjectParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public class APIJSONObjectParser<T extends Object> extends AbstractObjectParser<
* @throws Exception
*/
public APIJSONObjectParser(HttpSession session, @NotNull JSONObject request, String parentPath, SQLConfig<T> arrayConfig
, boolean isSubquery, boolean isTable, boolean isArrayMainTable) throws Exception {
super(request, parentPath, arrayConfig, isSubquery, isTable, isArrayMainTable);
, boolean isSubQuery, boolean isTable, boolean isArrayMainTable) throws Exception {
super(request, parentPath, arrayConfig, isSubQuery, isTable, isArrayMainTable);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/apijson/framework/AssertUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static void assertEqual(Object a, Object b, String errorMessage) {
return;
}

if (a == null || b == null || a.equals(b) == false) {
if (a == null || !a.equals(b)) {
throw new AssertionError(errorMessage == null ? "assert fail: a != b" : errorMessage);
}
}
Expand Down

0 comments on commit 9fd3127

Please sign in to comment.