"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient5/src/main/java/org/apache/hc/client5/http/auth/NTUserPrincipal.java" between
httpcomponents-client-5.2-src.tar.gz and httpcomponents-client-5.2.1-src.tar.gz

About: Apache HttpComponents Client provides reusable components for client-side authentication, HTTP state management, and HTTP connection management. Java sources.

NTUserPrincipal.java  (httpcomponents-client-5.2-src):NTUserPrincipal.java  (httpcomponents-client-5.2.1-src)
skipping to change at line 32 skipping to change at line 32
* individuals on behalf of the Apache Software Foundation. For more * individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see * information on the Apache Software Foundation, please see
* <http://www.apache.org/>. * <http://www.apache.org/>.
* *
*/ */
package org.apache.hc.client5.http.auth; package org.apache.hc.client5.http.auth;
import java.io.Serializable; import java.io.Serializable;
import java.security.Principal; import java.security.Principal;
import java.util.Locale; import java.util.Locale;
import java.util.Objects;
import org.apache.hc.core5.annotation.Contract; import org.apache.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior; import org.apache.hc.core5.annotation.ThreadingBehavior;
import org.apache.hc.core5.util.Args; import org.apache.hc.core5.util.Args;
import org.apache.hc.core5.util.LangUtils; import org.apache.hc.core5.util.LangUtils;
/** /**
* Microsoft Windows specific user principal implementation. * Microsoft Windows specific user principal implementation.
* *
* @since 4.0 * @since 4.0
skipping to change at line 102 skipping to change at line 103
return hash; return hash;
} }
@Override @Override
public boolean equals(final Object o) { public boolean equals(final Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
if (o instanceof NTUserPrincipal) { if (o instanceof NTUserPrincipal) {
final NTUserPrincipal that = (NTUserPrincipal) o; final NTUserPrincipal that = (NTUserPrincipal) o;
return LangUtils.equals(this.username, that.username) return Objects.equals(this.username, that.username)
&& LangUtils.equals(this.domain, that.domain); && Objects.equals(this.domain, that.domain);
} }
return false; return false;
} }
@Override @Override
public String toString() { public String toString() {
return this.ntname; return this.ntname;
} }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)