Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a878edf

Browse files
committed
Fixed the logic that is used to combine similar endpoints
(2039)
1 parent bd93c04 commit a878edf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

springfox-spring-web/src/main/java/springfox/documentation/spring/web/plugins/PathAndParametersEquivalence.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected boolean doEquivalent(RequestHandler a, RequestHandler b) {
3838
return a.getPatternsCondition().equals(b.getPatternsCondition())
3939
&& !Sets.intersection(a.supportedMethods(), b.supportedMethods()).isEmpty()
4040
&& a.params().equals(b.params())
41-
&& Sets.difference(wrapped(a.getParameters()), wrapped(b.getParameters())).isEmpty();
41+
&& Sets.symmetricDifference(wrapped(a.getParameters()), wrapped(b.getParameters())).isEmpty();
4242
}
4343

4444
private Set<Wrapper<ResolvedMethodParameter>> wrapped(List<ResolvedMethodParameter> parameters) {

0 commit comments

Comments
 (0)