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:
Sebastian Bazley 2010-12-10 22:51:44 +00:00
parent 74581924cc
commit f5a01c6cb2
4 changed files with 0 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;