forked from plusone/plusone-commons
refactor!: RegexTools 中使用 ArrayTools#isAllElementsNotNull 判断数组
BREAKING CHANGE: 数组为 `null` 时,不抛出 `NullPointerException`,而是 `IllegalArgumentException`。
This commit is contained in:
@@ -75,7 +75,7 @@ class RegexToolsTests {
|
||||
|
||||
@Test
|
||||
void getPatterns_NullPatterns_ThrowsException() {
|
||||
assertThrows(NullPointerException.class, () -> {
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
RegexTools.getPatterns(null, true);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user