fix an SimplifyBooleanReturn error. Because key.indexOf(filters) > -1' can be replaced with 'key.contains(filters)'

pull/1224/head
DDDreame 2 years ago
parent 773983df7f
commit f04be0416c

@ -181,7 +181,7 @@ public class MapUtil {
* @return * @return
*/ */
private static boolean checkKey(String key, String filters) { private static boolean checkKey(String key, String filters) {
if (key.indexOf(filters) > -1) { if (key.contains(filters)) {
return true; return true;
} else { } else {
return false; return false;

Loading…
Cancel
Save