No point checking for null, as instanceof else clause handles it
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1044527 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
74581924cc
commit
f5a01c6cb2
|
@ -66,7 +66,6 @@ public final class BasicUserPrincipal implements Principal, Serializable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (o == null) return false;
|
|
||||||
if (this == o) return true;
|
if (this == o) return true;
|
||||||
if (o instanceof BasicUserPrincipal) {
|
if (o instanceof BasicUserPrincipal) {
|
||||||
BasicUserPrincipal that = (BasicUserPrincipal) o;
|
BasicUserPrincipal that = (BasicUserPrincipal) o;
|
||||||
|
|
|
@ -154,7 +154,6 @@ public class NTCredentials implements Credentials, Serializable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (o == null) return false;
|
|
||||||
if (this == o) return true;
|
if (this == o) return true;
|
||||||
if (o instanceof NTCredentials) {
|
if (o instanceof NTCredentials) {
|
||||||
NTCredentials that = (NTCredentials) o;
|
NTCredentials that = (NTCredentials) o;
|
||||||
|
|
|
@ -94,7 +94,6 @@ public class NTUserPrincipal implements Principal, Serializable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (o == null) return false;
|
|
||||||
if (this == o) return true;
|
if (this == o) return true;
|
||||||
if (o instanceof NTUserPrincipal) {
|
if (o instanceof NTUserPrincipal) {
|
||||||
NTUserPrincipal that = (NTUserPrincipal) o;
|
NTUserPrincipal that = (NTUserPrincipal) o;
|
||||||
|
|
|
@ -103,7 +103,6 @@ public class UsernamePasswordCredentials implements Credentials, Serializable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (o == null) return false;
|
|
||||||
if (this == o) return true;
|
if (this == o) return true;
|
||||||
if (o instanceof UsernamePasswordCredentials) {
|
if (o instanceof UsernamePasswordCredentials) {
|
||||||
UsernamePasswordCredentials that = (UsernamePasswordCredentials) o;
|
UsernamePasswordCredentials that = (UsernamePasswordCredentials) o;
|
||||||
|
|
Loading…
Reference in New Issue