Skip to content

Commit

Permalink
Update WebRequestMethodsRule.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mercyblitz committed Aug 9, 2024
1 parent 00e3ce7 commit f41cb62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import java.util.Set;
import java.util.stream.Stream;

import static io.microsphere.collection.SetUtils.asSet;
import static io.microsphere.collection.SetUtils.ofSet;
import static io.microsphere.spring.web.util.WebRequestUtils.getMethod;
import static io.microsphere.spring.web.util.WebRequestUtils.isPreFlightRequest;
import static java.util.Collections.emptySet;
Expand Down Expand Up @@ -54,7 +54,7 @@ public WebRequestMethodsRule(RequestMethod... requestMethods) {
}

public WebRequestMethodsRule(String method, String... others) {
this.methods = ObjectUtils.isEmpty(others) ? singleton(method) : asSet(method, others);
this.methods = ObjectUtils.isEmpty(others) ? singleton(method) : ofSet(method, others);
}

@Override
Expand Down

0 comments on commit f41cb62

Please sign in to comment.