There are no valid parameters for Negotiate authentication so this
- * method always returns null.
+ * method always returns {@code null}.
*
* @param name The name of the parameter to be returned
*
@@ -192,10 +192,10 @@ public class NegotiateScheme extends GGSSchemeBase {
}
/**
- * Returns true.
+ * Returns {@code true}.
* Negotiate authentication scheme is connection based.
*
- * @return true.
+ * @return {@code true}.
*/
public boolean isConnectionBased() {
return true;
diff --git a/httpclient/src/main/java/org/apache/http/auth/AuthScheme.java b/httpclient/src/main/java/org/apache/http/auth/AuthScheme.java
index e9d4ae239..6b5cb6128 100644
--- a/httpclient/src/main/java/org/apache/http/auth/AuthScheme.java
+++ b/httpclient/src/main/java/org/apache/http/auth/AuthScheme.java
@@ -95,7 +95,7 @@ public interface AuthScheme {
* Tests if the authentication scheme is provides authorization on a per
* connection basis instead of usual per request basis
*
- * @return true if the scheme is connection based, false
+ * @return {@code true if the scheme is connection based, false}
* if the scheme is request based.
*/
boolean isConnectionBased();
@@ -106,8 +106,8 @@ public interface AuthScheme {
* successfully or unsuccessfully, that is, all the required authorization
* challenges have been processed in their entirety.
*
- * @return true if the authentication process has been completed,
- * false otherwise.
+ * @return {@code true} if the authentication process has been completed,
+ * {@code false} otherwise.
*/
boolean isComplete();
diff --git a/httpclient/src/main/java/org/apache/http/auth/AuthScope.java b/httpclient/src/main/java/org/apache/http/auth/AuthScope.java
index c3c7f85e7..9a8d50058 100644
--- a/httpclient/src/main/java/org/apache/http/auth/AuthScope.java
+++ b/httpclient/src/main/java/org/apache/http/auth/AuthScope.java
@@ -34,7 +34,7 @@ import org.apache.http.util.Args;
import org.apache.http.util.LangUtils;
/**
- * AuthScope represents an authentication scope consisting of a host name,
+ * {@code AuthScope} represents an authentication scope consisting of a host name,
* a port number, a realm name and an authentication scheme name.
*
* This class can also optionally contain a host of origin, if created in response
@@ -46,23 +46,23 @@ import org.apache.http.util.LangUtils;
public class AuthScope {
/**
- * The null value represents any host. In the future versions of
+ * The {@code null} value represents any host. In the future versions of
* HttpClient the use of this parameter will be discontinued.
*/
public static final String ANY_HOST = null;
/**
- * The -1 value represents any port.
+ * The {@code -1} value represents any port.
*/
public static final int ANY_PORT = -1;
/**
- * The null value represents any realm.
+ * The {@code null} value represents any realm.
*/
public static final String ANY_REALM = null;
/**
- * The null value represents any authentication scheme.
+ * The {@code null} value represents any authentication scheme.
*/
public static final String ANY_SCHEME = null;
@@ -89,8 +89,8 @@ public class AuthScope {
private final HttpHost origin;
/**
- * Defines auth scope with the given host, port, realm, and
- * authentication scheme.
+ * Defines auth scope with the given {@code host, port, realm}, and
+ * {@code authentication scheme}.
*
* @param host authentication host. May be {@link #ANY_HOST} if applies
* to any host.
@@ -148,7 +148,7 @@ public class AuthScope {
}
/**
- * Defines auth scope with the given host, port and realm.
+ * Defines auth scope with the given {@code host, port and realm}.
*
* @param host authentication host. May be {@link #ANY_HOST} if applies
* to any host.
@@ -162,7 +162,7 @@ public class AuthScope {
}
/**
- * Defines auth scope with the given host and port.
+ * Defines auth scope with the given {@code host and port}.
*
* @param host authentication host. May be {@link #ANY_HOST} if applies
* to any host.
diff --git a/httpclient/src/main/java/org/apache/http/auth/AuthenticationException.java b/httpclient/src/main/java/org/apache/http/auth/AuthenticationException.java
index cd59d9e53..5c2f716a3 100644
--- a/httpclient/src/main/java/org/apache/http/auth/AuthenticationException.java
+++ b/httpclient/src/main/java/org/apache/http/auth/AuthenticationException.java
@@ -41,7 +41,7 @@ public class AuthenticationException extends ProtocolException {
private static final long serialVersionUID = -6794031905674764776L;
/**
- * Creates a new AuthenticationException with a null detail message.
+ * Creates a new AuthenticationException with a {@code null} detail message.
*/
public AuthenticationException() {
super();
@@ -60,8 +60,8 @@ public class AuthenticationException extends ProtocolException {
* Creates a new AuthenticationException with the specified detail message and cause.
*
* @param message the exception detail message
- * @param cause the Throwable that caused this exception, or null
- * if the cause is unavailable, unknown, or not a Throwable
+ * @param cause the {@code Throwable that caused this exception, or null}
+ * if the cause is unavailable, unknown, or not a {@code Throwable}
*/
public AuthenticationException(final String message, final Throwable cause) {
super(message, cause);
diff --git a/httpclient/src/main/java/org/apache/http/auth/InvalidCredentialsException.java b/httpclient/src/main/java/org/apache/http/auth/InvalidCredentialsException.java
index a110a18a7..ee5e9a776 100644
--- a/httpclient/src/main/java/org/apache/http/auth/InvalidCredentialsException.java
+++ b/httpclient/src/main/java/org/apache/http/auth/InvalidCredentialsException.java
@@ -41,7 +41,7 @@ public class InvalidCredentialsException extends AuthenticationException {
private static final long serialVersionUID = -4834003835215460648L;
/**
- * Creates a new InvalidCredentialsException with a null detail message.
+ * Creates a new InvalidCredentialsException with a {@code null} detail message.
*/
public InvalidCredentialsException() {
super();
@@ -60,8 +60,8 @@ public class InvalidCredentialsException extends AuthenticationException {
* Creates a new InvalidCredentialsException with the specified detail message and cause.
*
* @param message the exception detail message
- * @param cause the Throwable that caused this exception, or null
- * if the cause is unavailable, unknown, or not a Throwable
+ * @param cause the {@code Throwable that caused this exception, or null}
+ * if the cause is unavailable, unknown, or not a {@code Throwable}
*/
public InvalidCredentialsException(final String message, final Throwable cause) {
super(message, cause);
diff --git a/httpclient/src/main/java/org/apache/http/auth/MalformedChallengeException.java b/httpclient/src/main/java/org/apache/http/auth/MalformedChallengeException.java
index 1fa538374..ac1e01305 100644
--- a/httpclient/src/main/java/org/apache/http/auth/MalformedChallengeException.java
+++ b/httpclient/src/main/java/org/apache/http/auth/MalformedChallengeException.java
@@ -42,7 +42,7 @@ public class MalformedChallengeException extends ProtocolException {
private static final long serialVersionUID = 814586927989932284L;
/**
- * Creates a new MalformedChallengeException with a null detail message.
+ * Creates a new MalformedChallengeException with a {@code null} detail message.
*/
public MalformedChallengeException() {
super();
@@ -61,8 +61,8 @@ public class MalformedChallengeException extends ProtocolException {
* Creates a new MalformedChallengeException with the specified detail message and cause.
*
* @param message the exception detail message
- * @param cause the Throwable that caused this exception, or null
- * if the cause is unavailable, unknown, or not a Throwable
+ * @param cause the {@code Throwable that caused this exception, or null}
+ * if the cause is unavailable, unknown, or not a {@code Throwable}
*/
public MalformedChallengeException(final String message, final Throwable cause) {
super(message, cause);
diff --git a/httpclient/src/main/java/org/apache/http/client/CircularRedirectException.java b/httpclient/src/main/java/org/apache/http/client/CircularRedirectException.java
index c88e10c6a..5e40924eb 100644
--- a/httpclient/src/main/java/org/apache/http/client/CircularRedirectException.java
+++ b/httpclient/src/main/java/org/apache/http/client/CircularRedirectException.java
@@ -40,7 +40,7 @@ public class CircularRedirectException extends RedirectException {
private static final long serialVersionUID = 6830063487001091803L;
/**
- * Creates a new CircularRedirectException with a null detail message.
+ * Creates a new CircularRedirectException with a {@code null} detail message.
*/
public CircularRedirectException() {
super();
@@ -59,8 +59,8 @@ public class CircularRedirectException extends RedirectException {
* Creates a new CircularRedirectException with the specified detail message and cause.
*
* @param message the exception detail message
- * @param cause the Throwable that caused this exception, or null
- * if the cause is unavailable, unknown, or not a Throwable
+ * @param cause the {@code Throwable that caused this exception, or null}
+ * if the cause is unavailable, unknown, or not a {@code Throwable}
*/
public CircularRedirectException(final String message, final Throwable cause) {
super(message, cause);
diff --git a/httpclient/src/main/java/org/apache/http/client/NonRepeatableRequestException.java b/httpclient/src/main/java/org/apache/http/client/NonRepeatableRequestException.java
index 342126fcc..4f4befb2c 100644
--- a/httpclient/src/main/java/org/apache/http/client/NonRepeatableRequestException.java
+++ b/httpclient/src/main/java/org/apache/http/client/NonRepeatableRequestException.java
@@ -42,7 +42,7 @@ public class NonRepeatableRequestException extends ProtocolException {
private static final long serialVersionUID = 82685265288806048L;
/**
- * Creates a new NonRepeatableEntityException with a null detail message.
+ * Creates a new NonRepeatableEntityException with a {@code null} detail message.
*/
public NonRepeatableRequestException() {
super();
diff --git a/httpclient/src/main/java/org/apache/http/client/RedirectException.java b/httpclient/src/main/java/org/apache/http/client/RedirectException.java
index c2b3ba987..866bfcac2 100644
--- a/httpclient/src/main/java/org/apache/http/client/RedirectException.java
+++ b/httpclient/src/main/java/org/apache/http/client/RedirectException.java
@@ -41,7 +41,7 @@ public class RedirectException extends ProtocolException {
private static final long serialVersionUID = 4418824536372559326L;
/**
- * Creates a new RedirectException with a null detail message.
+ * Creates a new RedirectException with a {@code null} detail message.
*/
public RedirectException() {
super();
@@ -60,8 +60,8 @@ public class RedirectException extends ProtocolException {
* Creates a new RedirectException with the specified detail message and cause.
*
* @param message the exception detail message
- * @param cause the Throwable that caused this exception, or null
- * if the cause is unavailable, unknown, or not a Throwable
+ * @param cause the {@code Throwable that caused this exception, or null}
+ * if the cause is unavailable, unknown, or not a {@code Throwable}
*/
public RedirectException(final String message, final Throwable cause) {
super(message, cause);
diff --git a/httpclient/src/main/java/org/apache/http/client/protocol/ResponseContentEncoding.java b/httpclient/src/main/java/org/apache/http/client/protocol/ResponseContentEncoding.java
index 91a4441de..d9f87d739 100644
--- a/httpclient/src/main/java/org/apache/http/client/protocol/ResponseContentEncoding.java
+++ b/httpclient/src/main/java/org/apache/http/client/protocol/ResponseContentEncoding.java
@@ -92,7 +92,7 @@ public class ResponseContentEncoding implements HttpResponseInterceptor {
}
/**
- * Handles gzip and deflate compressed entities by using the following
+ * Handles {@code gzip and deflate} compressed entities by using the following
* decoders:
*
*
gzip - see {@link GZIPInputStream}
diff --git a/httpclient/src/main/java/org/apache/http/conn/ConnectTimeoutException.java b/httpclient/src/main/java/org/apache/http/conn/ConnectTimeoutException.java
index 52e7a29d1..a76bcdadb 100644
--- a/httpclient/src/main/java/org/apache/http/conn/ConnectTimeoutException.java
+++ b/httpclient/src/main/java/org/apache/http/conn/ConnectTimeoutException.java
@@ -50,7 +50,7 @@ public class ConnectTimeoutException extends InterruptedIOException {
private final HttpHost host;
/**
- * Creates a ConnectTimeoutException with a null detail message.
+ * Creates a ConnectTimeoutException with a {@code null} detail message.
*/
public ConnectTimeoutException() {
super();
diff --git a/httpclient/src/main/java/org/apache/http/conn/ConnectionPoolTimeoutException.java b/httpclient/src/main/java/org/apache/http/conn/ConnectionPoolTimeoutException.java
index 9cdd18916..3328cc41e 100644
--- a/httpclient/src/main/java/org/apache/http/conn/ConnectionPoolTimeoutException.java
+++ b/httpclient/src/main/java/org/apache/http/conn/ConnectionPoolTimeoutException.java
@@ -42,7 +42,7 @@ public class ConnectionPoolTimeoutException extends ConnectTimeoutException {
private static final long serialVersionUID = -7898874842020245128L;
/**
- * Creates a ConnectTimeoutException with a null detail message.
+ * Creates a ConnectTimeoutException with a {@code null} detail message.
*/
public ConnectionPoolTimeoutException() {
super();
diff --git a/httpclient/src/main/java/org/apache/http/cookie/ClientCookie.java b/httpclient/src/main/java/org/apache/http/cookie/ClientCookie.java
index 164d302b9..dde42d22d 100644
--- a/httpclient/src/main/java/org/apache/http/cookie/ClientCookie.java
+++ b/httpclient/src/main/java/org/apache/http/cookie/ClientCookie.java
@@ -31,10 +31,10 @@ package org.apache.http.cookie;
* ClientCookie extends the standard {@link Cookie} interface with
* additional client specific functionality such ability to retrieve
* original cookie attributes exactly as they were specified by the
- * origin server. This is important for generating the Cookie
+ * origin server. This is important for generating the {@code Cookie}
* header because some cookie specifications require that the
- * Cookie header should include certain attributes only if
- * they were specified in the Set-Cookie header.
+ * {@code Cookie} header should include certain attributes only if
+ * they were specified in the {@code Set-Cookie} header.
*
*
* @since 4.0
diff --git a/httpclient/src/main/java/org/apache/http/cookie/Cookie.java b/httpclient/src/main/java/org/apache/http/cookie/Cookie.java
index b1c18f316..b4d80e636 100644
--- a/httpclient/src/main/java/org/apache/http/cookie/Cookie.java
+++ b/httpclient/src/main/java/org/apache/http/cookie/Cookie.java
@@ -55,7 +55,7 @@ public interface Cookie {
/**
* Returns the comment describing the purpose of this cookie, or
- * null if no such comment has been defined.
+ * {@code null} if no such comment has been defined.
*
* @return comment
*/
@@ -68,21 +68,21 @@ public interface Cookie {
String getCommentURL();
/**
- * Returns the expiration {@link Date} of the cookie, or null
+ * Returns the expiration {@link Date} of the cookie, or {@code null}
* if none exists.
*
Note: the object returned by this method is
* considered immutable. Changing it (e.g. using setTime()) could result
* in undefined behaviour. Do so at your peril.
- * @return Expiration {@link Date}, or null.
+ * @return Expiration {@link Date}, or {@code null}.
*/
Date getExpiryDate();
/**
- * Returns false if the cookie should be discarded at the end
- * of the "session"; true otherwise.
+ * Returns {@code false} if the cookie should be discarded at the end
+ * of the "session"; {@code true} otherwise.
*
- * @return false if the cookie should be discarded at the end
- * of the "session"; true otherwise
+ * @return {@code false} if the cookie should be discarded at the end
+ * of the "session"; {@code true} otherwise
*/
boolean isPersistent();
@@ -129,7 +129,7 @@ public interface Cookie {
* Returns true if this cookie has expired.
* @param date Current time
*
- * @return true if the cookie has expired.
+ * @return {@code true} if the cookie has expired.
*/
boolean isExpired(final Date date);
diff --git a/httpclient/src/main/java/org/apache/http/cookie/CookieAttributeHandler.java b/httpclient/src/main/java/org/apache/http/cookie/CookieAttributeHandler.java
index a6621a8f4..611e04a61 100644
--- a/httpclient/src/main/java/org/apache/http/cookie/CookieAttributeHandler.java
+++ b/httpclient/src/main/java/org/apache/http/cookie/CookieAttributeHandler.java
@@ -66,7 +66,7 @@ public interface CookieAttributeHandler {
*
* @param cookie {@link org.apache.http.cookie.Cookie} to match
* @param origin the cookie source to match against
- * @return true if the match is successful; false otherwise
+ * @return {@code true
if the match is successful; false} otherwise
*/
boolean match(Cookie cookie, CookieOrigin origin);
diff --git a/httpclient/src/main/java/org/apache/http/cookie/CookiePathComparator.java b/httpclient/src/main/java/org/apache/http/cookie/CookiePathComparator.java
index 985b7cedf..050a72d6a 100644
--- a/httpclient/src/main/java/org/apache/http/cookie/CookiePathComparator.java
+++ b/httpclient/src/main/java/org/apache/http/cookie/CookiePathComparator.java
@@ -34,7 +34,7 @@ import org.apache.http.annotation.Immutable;
/**
* This cookie comparator ensures that multiple cookies satisfying
- * a common criteria are ordered in the Cookie header such
+ * a common criteria are ordered in the {@code Cookie} header such
* that those with more specific Path attributes precede those with
* less specific.
*
diff --git a/httpclient/src/main/java/org/apache/http/cookie/CookieRestrictionViolationException.java b/httpclient/src/main/java/org/apache/http/cookie/CookieRestrictionViolationException.java
index ab9b34694..3b30a977b 100644
--- a/httpclient/src/main/java/org/apache/http/cookie/CookieRestrictionViolationException.java
+++ b/httpclient/src/main/java/org/apache/http/cookie/CookieRestrictionViolationException.java
@@ -41,7 +41,7 @@ public class CookieRestrictionViolationException extends MalformedCookieExceptio
private static final long serialVersionUID = 7371235577078589013L;
/**
- * Creates a new CookeFormatViolationException with a null detail
+ * Creates a new CookeFormatViolationException with a {@code null} detail
* message.
*/
public CookieRestrictionViolationException() {
diff --git a/httpclient/src/main/java/org/apache/http/cookie/CookieSpec.java b/httpclient/src/main/java/org/apache/http/cookie/CookieSpec.java
index 9c0caf981..83529cdbb 100644
--- a/httpclient/src/main/java/org/apache/http/cookie/CookieSpec.java
+++ b/httpclient/src/main/java/org/apache/http/cookie/CookieSpec.java
@@ -55,16 +55,16 @@ public interface CookieSpec {
int getVersion();
/**
- * Parse the "Set-Cookie" Header into an array of Cookies.
+ * Parse the {@code "Set-Cookie"} Header into an array of Cookies.
*
*
This method will not perform the validation of the resultant
* {@link Cookie}s
*
* @see #validate
*
- * @param header the Set-Cookie received from the server
+ * @param header the {@code Set-Cookie} received from the server
* @param origin details of the cookie origin
- * @return an array of Cookies parsed from the header
+ * @return an array of {@code Cookie}s parsed from the header
* @throws MalformedCookieException if an exception occurs during parsing
*/
List parse(Header header, CookieOrigin origin) throws MalformedCookieException;
@@ -85,13 +85,13 @@ public interface CookieSpec {
* @param cookie the Cookie to be matched
* @param origin the target to test against
*
- * @return true if the cookie should be submitted with a request
- * with given attributes, false otherwise.
+ * @return {@code true} if the cookie should be submitted with a request
+ * with given attributes, {@code false} otherwise.
*/
boolean match(Cookie cookie, CookieOrigin origin);
/**
- * Create "Cookie" headers for an array of Cookies.
+ * Create {@code "Cookie"} headers for an array of Cookies.
*
* @param cookies the Cookies format into a Cookie header
* @return a Header for the given Cookies.
@@ -102,7 +102,7 @@ public interface CookieSpec {
/**
* Returns a request header identifying what version of the state management
* specification is understood. May be null if the cookie
- * specification does not support Cookie2 header.
+ * specification does not support {@code Cookie2} header.
*/
Header getVersionHeader();
diff --git a/httpclient/src/main/java/org/apache/http/cookie/MalformedCookieException.java b/httpclient/src/main/java/org/apache/http/cookie/MalformedCookieException.java
index 19d2ec080..8bc4561ec 100644
--- a/httpclient/src/main/java/org/apache/http/cookie/MalformedCookieException.java
+++ b/httpclient/src/main/java/org/apache/http/cookie/MalformedCookieException.java
@@ -43,7 +43,7 @@ public class MalformedCookieException extends ProtocolException {
private static final long serialVersionUID = -6695462944287282185L;
/**
- * Creates a new MalformedCookieException with a null detail message.
+ * Creates a new MalformedCookieException with a {@code null} detail message.
*/
public MalformedCookieException() {
super();
@@ -62,8 +62,8 @@ public class MalformedCookieException extends ProtocolException {
* Creates a new MalformedCookieException with the specified detail message and cause.
*
* @param message the exception detail message
- * @param cause the Throwable that caused this exception, or null
- * if the cause is unavailable, unknown, or not a Throwable
+ * @param cause the {@code Throwable that caused this exception, or null}
+ * if the cause is unavailable, unknown, or not a {@code Throwable}
*/
public MalformedCookieException(final String message, final Throwable cause) {
super(message, cause);
diff --git a/httpclient/src/main/java/org/apache/http/cookie/SetCookie.java b/httpclient/src/main/java/org/apache/http/cookie/SetCookie.java
index a3b9673b8..7f16ed901 100644
--- a/httpclient/src/main/java/org/apache/http/cookie/SetCookie.java
+++ b/httpclient/src/main/java/org/apache/http/cookie/SetCookie.java
@@ -84,7 +84,7 @@ public interface SetCookie extends Cookie {
/**
* Sets the secure attribute of the cookie.
*
- * When true the cookie should only be sent
+ * When {@code true} the cookie should only be sent
* using a secure protocol (https). This should only be set when
* the cookie's originating server used a secure protocol to set the
* cookie's value.
diff --git a/httpclient/src/main/java/org/apache/http/cookie/SetCookie2.java b/httpclient/src/main/java/org/apache/http/cookie/SetCookie2.java
index f92de7648..5094519a0 100644
--- a/httpclient/src/main/java/org/apache/http/cookie/SetCookie2.java
+++ b/httpclient/src/main/java/org/apache/http/cookie/SetCookie2.java
@@ -50,7 +50,7 @@ public interface SetCookie2 extends SetCookie {
/**
* Set the Discard attribute.
*
- * Note: Discard attribute overrides Max-age.
+ * Note: {@code Discard attribute overrides Max-age}.
*
* @see #isPersistent()
*/
diff --git a/httpclient/src/main/java/org/apache/http/impl/auth/AuthSchemeBase.java b/httpclient/src/main/java/org/apache/http/impl/auth/AuthSchemeBase.java
index 646b3d61e..9c3a0be7f 100644
--- a/httpclient/src/main/java/org/apache/http/impl/auth/AuthSchemeBase.java
+++ b/httpclient/src/main/java/org/apache/http/impl/auth/AuthSchemeBase.java
@@ -59,7 +59,7 @@ public abstract class AuthSchemeBase implements ContextAwareAuthScheme {
private ChallengeState challengeState;
/**
- * Creates an instance of AuthSchemeBase with the given challenge
+ * Creates an instance of {@code AuthSchemeBase} with the given challenge
* state.
*
* @since 4.2
diff --git a/httpclient/src/main/java/org/apache/http/impl/auth/BasicScheme.java b/httpclient/src/main/java/org/apache/http/impl/auth/BasicScheme.java
index 9a5f589b4..486c53650 100644
--- a/httpclient/src/main/java/org/apache/http/impl/auth/BasicScheme.java
+++ b/httpclient/src/main/java/org/apache/http/impl/auth/BasicScheme.java
@@ -67,7 +67,7 @@ public class BasicScheme extends RFC2617Scheme {
}
/**
- * Creates an instance of BasicScheme with the given challenge
+ * Creates an instance of {@code BasicScheme} with the given challenge
* state.
*
* @since 4.2
@@ -111,8 +111,8 @@ public class BasicScheme extends RFC2617Scheme {
/**
* Tests if the Basic authentication process has been completed.
*
- * @return true if Basic authorization has been processed,
- * false otherwise.
+ * @return {@code true} if Basic authorization has been processed,
+ * {@code false} otherwise.
*/
@Override
public boolean isComplete() {
@@ -120,9 +120,9 @@ public class BasicScheme extends RFC2617Scheme {
}
/**
- * Returns false. Basic authentication scheme is request based.
+ * Returns {@code false}. Basic authentication scheme is request based.
*
- * @return false.
+ * @return {@code false}.
*/
@Override
public boolean isConnectionBased() {
@@ -182,7 +182,7 @@ public class BasicScheme extends RFC2617Scheme {
}
/**
- * Returns a basic Authorization header value for the given
+ * Returns a basic {@code Authorization} header value for the given
* {@link Credentials} and charset.
*
* @param credentials The credentials to encode.
diff --git a/httpclient/src/main/java/org/apache/http/impl/auth/DigestScheme.java b/httpclient/src/main/java/org/apache/http/impl/auth/DigestScheme.java
index 74b830272..e84a9f7d1 100644
--- a/httpclient/src/main/java/org/apache/http/impl/auth/DigestScheme.java
+++ b/httpclient/src/main/java/org/apache/http/impl/auth/DigestScheme.java
@@ -110,7 +110,7 @@ public class DigestScheme extends RFC2617Scheme {
}
/**
- * Creates an instance of DigestScheme with the given challenge
+ * Creates an instance of {@code DigestScheme} with the given challenge
* state.
*
* @since 4.2
@@ -144,8 +144,8 @@ public class DigestScheme extends RFC2617Scheme {
/**
* Tests if the Digest authentication process has been completed.
*
- * @return true if Digest authorization has been processed,
- * false otherwise.
+ * @return {@code true} if Digest authorization has been processed,
+ * {@code false} otherwise.
*/
@Override
public boolean isComplete() {
@@ -168,9 +168,9 @@ public class DigestScheme extends RFC2617Scheme {
}
/**
- * Returns false. Digest authentication scheme is request based.
+ * Returns {@code false}. Digest authentication scheme is request based.
*
- * @return false.
+ * @return {@code false}.
*/
@Override
public boolean isConnectionBased() {
diff --git a/httpclient/src/main/java/org/apache/http/impl/auth/KerberosScheme.java b/httpclient/src/main/java/org/apache/http/impl/auth/KerberosScheme.java
index ee322222b..1d1c7136d 100644
--- a/httpclient/src/main/java/org/apache/http/impl/auth/KerberosScheme.java
+++ b/httpclient/src/main/java/org/apache/http/impl/auth/KerberosScheme.java
@@ -108,9 +108,9 @@ public class KerberosScheme extends GGSSchemeBase {
}
/**
- * Returns true. KERBEROS authentication scheme is connection based.
+ * Returns {@code true}. KERBEROS authentication scheme is connection based.
*
- * @return true.
+ * @return {@code true}.
*/
@Override
public boolean isConnectionBased() {
diff --git a/httpclient/src/main/java/org/apache/http/impl/auth/NTLMEngineException.java b/httpclient/src/main/java/org/apache/http/impl/auth/NTLMEngineException.java
index 58921c743..7448c20ac 100644
--- a/httpclient/src/main/java/org/apache/http/impl/auth/NTLMEngineException.java
+++ b/httpclient/src/main/java/org/apache/http/impl/auth/NTLMEngineException.java
@@ -57,8 +57,8 @@ public class NTLMEngineException extends AuthenticationException {
* Creates a new NTLMEngineException with the specified detail message and cause.
*
* @param message the exception detail message
- * @param cause the Throwable that caused this exception, or null
- * if the cause is unavailable, unknown, or not a Throwable
+ * @param cause the {@code Throwable that caused this exception, or null}
+ * if the cause is unavailable, unknown, or not a {@code Throwable}
*/
public NTLMEngineException(final String message, final Throwable cause) {
super(message, cause);
diff --git a/httpclient/src/main/java/org/apache/http/impl/auth/RFC2617Scheme.java b/httpclient/src/main/java/org/apache/http/impl/auth/RFC2617Scheme.java
index f00cca5cf..2c2210543 100644
--- a/httpclient/src/main/java/org/apache/http/impl/auth/RFC2617Scheme.java
+++ b/httpclient/src/main/java/org/apache/http/impl/auth/RFC2617Scheme.java
@@ -66,7 +66,7 @@ public abstract class RFC2617Scheme extends AuthSchemeBase implements Serializab
private transient Charset credentialsCharset;
/**
- * Creates an instance of RFC2617Scheme with the given challenge
+ * Creates an instance of {@code RFC2617Scheme} with the given challenge
* state.
*
* @since 4.2
diff --git a/httpclient/src/main/java/org/apache/http/impl/auth/SPNegoScheme.java b/httpclient/src/main/java/org/apache/http/impl/auth/SPNegoScheme.java
index a8c3dbb86..b55500727 100644
--- a/httpclient/src/main/java/org/apache/http/impl/auth/SPNegoScheme.java
+++ b/httpclient/src/main/java/org/apache/http/impl/auth/SPNegoScheme.java
@@ -109,9 +109,9 @@ public class SPNegoScheme extends GGSSchemeBase {
}
/**
- * Returns true. SPNEGO authentication scheme is connection based.
+ * Returns {@code true}. SPNEGO authentication scheme is connection based.
*
- * @return true.
+ * @return {@code true}.
*/
@Override
public boolean isConnectionBased() {
diff --git a/httpclient/src/main/java/org/apache/http/impl/auth/UnsupportedDigestAlgorithmException.java b/httpclient/src/main/java/org/apache/http/impl/auth/UnsupportedDigestAlgorithmException.java
index a546fa77a..3eea852bb 100644
--- a/httpclient/src/main/java/org/apache/http/impl/auth/UnsupportedDigestAlgorithmException.java
+++ b/httpclient/src/main/java/org/apache/http/impl/auth/UnsupportedDigestAlgorithmException.java
@@ -41,7 +41,7 @@ public class UnsupportedDigestAlgorithmException extends RuntimeException {
private static final long serialVersionUID = 319558534317118022L;
/**
- * Creates a new UnsupportedAuthAlgoritmException with a null detail message.
+ * Creates a new UnsupportedAuthAlgoritmException with a {@code null} detail message.
*/
public UnsupportedDigestAlgorithmException() {
super();
@@ -60,8 +60,8 @@ public class UnsupportedDigestAlgorithmException extends RuntimeException {
* Creates a new UnsupportedAuthAlgoritmException with the specified detail message and cause.
*
* @param message the exception detail message
- * @param cause the Throwable that caused this exception, or null
- * if the cause is unavailable, unknown, or not a Throwable
+ * @param cause the {@code Throwable that caused this exception, or null}
+ * if the cause is unavailable, unknown, or not a {@code Throwable}
*/
public UnsupportedDigestAlgorithmException(final String message, final Throwable cause) {
super(message, cause);
diff --git a/httpclient/src/main/java/org/apache/http/impl/client/DefaultRedirectStrategy.java b/httpclient/src/main/java/org/apache/http/impl/client/DefaultRedirectStrategy.java
index 1b4c7fc22..b9bb6c4d2 100644
--- a/httpclient/src/main/java/org/apache/http/impl/client/DefaultRedirectStrategy.java
+++ b/httpclient/src/main/java/org/apache/http/impl/client/DefaultRedirectStrategy.java
@@ -58,8 +58,8 @@ import org.apache.http.util.TextUtils;
/**
* Default implementation of {@link RedirectStrategy}. This strategy honors the restrictions
* on automatic redirection of entity enclosing methods such as POST and PUT imposed by the
- * HTTP specification. 302 Moved Temporarily, 301 Moved Permanently and
- * 307 Temporary Redirect status codes will result in an automatic redirect of
+ * HTTP specification. {@code 302 Moved Temporarily, 301 Moved Permanently} and
+ * {@code 307 Temporary Redirect} status codes will result in an automatic redirect of
* HEAD and GET methods only. POST and PUT methods will not be automatically redirected
* as requiring user confirmation.
*
diff --git a/httpclient/src/main/java/org/apache/http/impl/client/HttpClientBuilder.java b/httpclient/src/main/java/org/apache/http/impl/client/HttpClientBuilder.java
index 7bdc8d4f3..b629792ac 100644
--- a/httpclient/src/main/java/org/apache/http/impl/client/HttpClientBuilder.java
+++ b/httpclient/src/main/java/org/apache/http/impl/client/HttpClientBuilder.java
@@ -415,7 +415,7 @@ public class HttpClientBuilder {
}
/**
- * Assigns User-Agent value.
+ * Assigns {@code User-Agent} value.
*
* Please note this value can be overridden by the {@link #setHttpProcessor(
* org.apache.http.protocol.HttpProcessor)} method.
diff --git a/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java b/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java
index 9f1484220..e0d44648e 100644
--- a/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java
+++ b/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java
@@ -106,7 +106,7 @@ public class RedirectLocations extends AbstractList