Skip to content

Commit

Permalink
stylistic cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Mar 8, 2024
1 parent 084bdad commit 4d09194
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ public JsonParser treeAsTokens(TreeNode node) {
* Factory method for constructing node to represent Boolean values.
*
* @param state Whether to create {@code Boolean.TRUE} or {@code Boolean.FALSE} node
*
* @return Node instance for given boolean value
*
* @since 2.8
Expand All @@ -142,7 +141,6 @@ public JrsBoolean booleanNode(boolean state) {
* Factory method for constructing node to represent String values.
*
* @param text String value for constructed node to contain
*
* @return Node instance for given text value
*
* @since 2.8
Expand All @@ -158,7 +156,6 @@ public JrsString stringNode(String text) {
* Factory method for constructing node to represent String values.
*
* @param nr Numeric value for constructed node to contain
*
* @return Node instance for given numeric value
*
* @since 2.8
Expand All @@ -175,12 +172,12 @@ public JrsNumber numberNode(Number nr) {
/* Internal methods
/**********************************************************************
*/

protected List<JrsValue> _list() {
return new ArrayList<>();
}

protected Map<String,JrsValue> _map() {
protected Map<String, JrsValue> _map() {
return new LinkedHashMap<>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected void verifyException(Throwable e, String... matches)
String lmsg = (msg == null) ? "" : msg.toLowerCase();
for (String match : matches) {
String lmatch = match.toLowerCase();
if (lmsg.indexOf(lmatch) >= 0) {
if (lmsg.contains(lmatch)) {
return;
}
}
Expand Down

0 comments on commit 4d09194

Please sign in to comment.