Skip to content

Commit

Permalink
Update common/src/main/java/com/linecorp/centraldogma/common/PathPatt…
Browse files Browse the repository at this point in the history
…ern.java

Co-authored-by: Trustin Lee <[email protected]>
  • Loading branch information
noodlze and trustin committed Mar 19, 2023
1 parent 7c87563 commit 49b5d3f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ static PathPattern of(String... patterns) {
* Creates a path pattern with the {@code pathPatterns}.
*/
static PathPattern of(PathPattern... pathPatterns) {
checkArgument(pathPatterns.length > 0, "pathPatterns");
requireNonNull(pathPatterns, "pathPatterns");
checkArgument(pathPatterns.length > 0, "pathPatterns is empty.");
if (pathPatterns.length == 1) {
return pathPatterns[0];
}
Expand Down

0 comments on commit 49b5d3f

Please sign in to comment.