mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-07 19:22:14 +00:00
SEC-311: Must observe symmetry requirement of Object.equals(Object) contract.
This commit is contained in:
parent
9e3ce85dd5
commit
324789d544
@ -197,13 +197,13 @@ public class ChannelDecisionManagerImplTests extends TestCase {
|
|||||||
Iterator iter = config.getConfigAttributes();
|
Iterator iter = config.getConfigAttributes();
|
||||||
|
|
||||||
if (failIfCalled) {
|
if (failIfCalled) {
|
||||||
fail("Should not have called this channel processor");
|
fail("Should not have called this channel processor: " + configAttribute);
|
||||||
}
|
}
|
||||||
|
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
ConfigAttribute attr = (ConfigAttribute) iter.next();
|
ConfigAttribute attr = (ConfigAttribute) iter.next();
|
||||||
|
|
||||||
if (attr.equals(configAttribute)) {
|
if (attr.getAttribute().equals(configAttribute)) {
|
||||||
invocation.getHttpResponse().sendRedirect("/redirected");
|
invocation.getHttpResponse().sendRedirect("/redirected");
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user