Skip to content

Commit

Permalink
Revert "Merge pull request #32088 from Ryan-Dia"
Browse files Browse the repository at this point in the history
This reverts commit 484aee0, reversing
changes made to 6bd7f02.

See gh-32088
  • Loading branch information
snicoll committed Jan 23, 2024
1 parent 9230a7d commit 3585559
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2024 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -137,9 +137,13 @@ public int compareTo(ParamsRequestCondition other, HttpServletRequest request) {
}

private long getValueMatchCount(Set<ParamExpression> expressions) {
return expressions.stream()
.filter(e -> e.getValue() != null && !e.isNegated())
.count();
long count = 0;
for (ParamExpression e : expressions) {
if (e.getValue() != null && !e.isNegated()) {
count++;
}
}
return count;
}


Expand Down

0 comments on commit 3585559

Please sign in to comment.