Serializable classes do not declare serialVersionUID.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1725777 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2016-01-20 19:14:31 +00:00
parent 5db1758215
commit 89ae855bf9
12 changed files with 12 additions and 0 deletions

View File

@ -35,6 +35,7 @@ import org.apache.hc.core5.http.message.AbstractHttpMessage;
public abstract class AbstractExecutionAwareRequest extends AbstractHttpMessage implements HttpExecutionAware, HttpRequest {
private static final long serialVersionUID = 1L;
private final AtomicBoolean aborted;
private final AtomicReference<Cancellable> cancellableRef;

View File

@ -49,6 +49,7 @@ import org.apache.hc.core5.annotation.NotThreadSafe;
@NotThreadSafe // HttpRequestBase is @NotThreadSafe
public class HttpDelete extends HttpRequestBase {
private static final long serialVersionUID = 1L;
public final static String METHOD_NAME = "DELETE";

View File

@ -50,6 +50,7 @@ import org.apache.hc.core5.annotation.NotThreadSafe;
@NotThreadSafe
public class HttpGet extends HttpRequestBase {
private static final long serialVersionUID = 1L;
public final static String METHOD_NAME = "GET";
public HttpGet() {

View File

@ -53,6 +53,7 @@ import org.apache.hc.core5.annotation.NotThreadSafe;
@NotThreadSafe
public class HttpHead extends HttpRequestBase {
private static final long serialVersionUID = 1L;
public final static String METHOD_NAME = "HEAD";
public HttpHead() {

View File

@ -58,6 +58,7 @@ import org.apache.hc.core5.util.Args;
@NotThreadSafe
public class HttpOptions extends HttpRequestBase {
private static final long serialVersionUID = 1L;
public final static String METHOD_NAME = "OPTIONS";
public HttpOptions() {

View File

@ -53,6 +53,7 @@ import org.apache.hc.core5.annotation.NotThreadSafe;
@NotThreadSafe
public class HttpPatch extends HttpRequestBase {
private static final long serialVersionUID = 1L;
public final static String METHOD_NAME = "PATCH";
public HttpPatch() {

View File

@ -57,6 +57,7 @@ import org.apache.hc.core5.annotation.NotThreadSafe;
@NotThreadSafe
public class HttpPost extends HttpRequestBase {
private static final long serialVersionUID = 1L;
public final static String METHOD_NAME = "POST";
public HttpPost() {

View File

@ -49,6 +49,7 @@ import org.apache.hc.core5.annotation.NotThreadSafe;
@NotThreadSafe
public class HttpPut extends HttpRequestBase {
private static final long serialVersionUID = 1L;
public final static String METHOD_NAME = "PUT";
public HttpPut() {

View File

@ -45,6 +45,7 @@ import org.apache.hc.core5.http.message.BasicRequestLine;
public abstract class HttpRequestBase extends AbstractExecutionAwareRequest
implements HttpUriRequest, Configurable {
private static final long serialVersionUID = 1L;
private ProtocolVersion version;
private URI uri;
private RequestConfig config;

View File

@ -48,6 +48,7 @@ import org.apache.hc.core5.util.Args;
@NotThreadSafe
public class HttpRequestWrapper extends AbstractHttpMessage implements HttpUriRequest {
private static final long serialVersionUID = 1L;
private final HttpRequest original;
private final HttpHost target;
private final String method;

View File

@ -52,6 +52,7 @@ import org.apache.hc.core5.annotation.NotThreadSafe;
@NotThreadSafe
public class HttpTrace extends HttpRequestBase {
private static final long serialVersionUID = 1L;
public final static String METHOD_NAME = "TRACE";
public HttpTrace() {

View File

@ -485,6 +485,7 @@ public class RequestBuilder {
static class InternalRequest extends HttpRequestBase {
private static final long serialVersionUID = 1L;
private final String method;
InternalRequest(final String method) {