Update CheckIfStringContainsInvalidEncodedCharactersUnitTest.java (#15703)
Update: assertTrue(found ? true : false); to assertTrue(found); and assertTrue(matcher.find() ? true : false); to assertTrue(matcher.find());
This commit is contained in:
parent
f6806580ae
commit
2b82e913a6
@ -18,7 +18,7 @@ public class CheckIfStringContainsInvalidEncodedCharactersUnitTest {
|
|||||||
String regexPattern = "[^\\x00-\\x7F]+";
|
String regexPattern = "[^\\x00-\\x7F]+";
|
||||||
Pattern pattern = Pattern.compile(regexPattern);
|
Pattern pattern = Pattern.compile(regexPattern);
|
||||||
Matcher matcher = pattern.matcher(input);
|
Matcher matcher = pattern.matcher(input);
|
||||||
assertTrue(matcher.find() ? true : false);
|
assertTrue(matcher.find());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -28,6 +28,6 @@ public class CheckIfStringContainsInvalidEncodedCharactersUnitTest {
|
|||||||
for (byte b : bytes) {
|
for (byte b : bytes) {
|
||||||
found = (b & 0xFF) > 127 ? true : found;
|
found = (b & 0xFF) > 127 ? true : found;
|
||||||
}
|
}
|
||||||
assertTrue(found ? true : false);
|
assertTrue(found);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user