Skip to content

Commit 49b5d3f

Browse files
noodlzetrustin
andauthored
Update common/src/main/java/com/linecorp/centraldogma/common/PathPattern.java
Co-authored-by: Trustin Lee <t@motd.kr>
1 parent 7c87563 commit 49b5d3f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

common/src/main/java/com/linecorp/centraldogma/common/PathPattern.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ static PathPattern of(String... patterns) {
6363
* Creates a path pattern with the {@code pathPatterns}.
6464
*/
6565
static PathPattern of(PathPattern... pathPatterns) {
66-
checkArgument(pathPatterns.length > 0, "pathPatterns");
66+
requireNonNull(pathPatterns, "pathPatterns");
67+
checkArgument(pathPatterns.length > 0, "pathPatterns is empty.");
6768
if (pathPatterns.length == 1) {
6869
return pathPatterns[0];
6970
}

0 commit comments

Comments
 (0)