Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.

This commit is contained in:
Simone Bordet 2017-05-16 16:35:33 +02:00
commit 20e7f4881f
1 changed files with 4 additions and 4 deletions

View File

@ -98,9 +98,9 @@ public abstract class Credential implements Serializable
return true;
if (s1 == null || s2 == null || s1.length() != s2.length())
return false;
boolean result = false;
boolean result = true;
for (int i = 0; i < s1.length(); i++)
result |= s1.charAt(i) == s2.charAt(i);
result &= s1.charAt(i) == s2.charAt(i);
return result;
}
@ -117,9 +117,9 @@ public abstract class Credential implements Serializable
return true;
if (b1 == null || b2 == null || b1.length != b2.length)
return false;
boolean result = false;
boolean result = true;
for (int i = 0; i < b1.length; i++)
result |= b1[i] == b2[i];
result &= b1[i] == b2[i];
return result;
}