hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1570959 - in /httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent: InternalByteArrayEntity.java InternalFileEntity.java InternalInputStreamEntity.java
Date Sun, 23 Feb 2014 02:37:30 GMT
Author: sebb
Date: Sun Feb 23 02:37:29 2014
New Revision: 1570959

URL: http://svn.apache.org/r1570959
Log:
Java 6 wants @Override for interface implementations as well

Modified:
    httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalByteArrayEntity.java
    httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalFileEntity.java
    httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalInputStreamEntity.java

Modified: httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalByteArrayEntity.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalByteArrayEntity.java?rev=1570959&r1=1570958&r2=1570959&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalByteArrayEntity.java
(original)
+++ httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalByteArrayEntity.java
Sun Feb 23 02:37:29 2014
@@ -75,24 +75,29 @@ class InternalByteArrayEntity extends Ab
         this(b, off, len, null);
     }
 
+    @Override
     public boolean isRepeatable() {
         return true;
     }
 
+    @Override
     public long getContentLength() {
         return this.len;
     }
 
+    @Override
     public InputStream getContent() {
         return new ByteArrayInputStream(this.b, this.off, this.len);
     }
 
+    @Override
     public void writeTo(final OutputStream outstream) throws IOException {
         Args.notNull(outstream, "Output stream");
         outstream.write(this.b, this.off, this.len);
         outstream.flush();
     }
 
+    @Override
     public boolean isStreaming() {
         return false;
     }

Modified: httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalFileEntity.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalFileEntity.java?rev=1570959&r1=1570958&r2=1570959&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalFileEntity.java
(original)
+++ httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalFileEntity.java
Sun Feb 23 02:37:29 2014
@@ -49,18 +49,22 @@ class InternalFileEntity extends Abstrac
         }
     }
 
+    @Override
     public boolean isRepeatable() {
         return true;
     }
 
+    @Override
     public long getContentLength() {
         return this.file.length();
     }
 
+    @Override
     public InputStream getContent() throws IOException {
         return new FileInputStream(this.file);
     }
 
+    @Override
     public void writeTo(final OutputStream outstream) throws IOException {
         Args.notNull(outstream, "Output stream");
         final InputStream instream = new FileInputStream(this.file);
@@ -76,6 +80,7 @@ class InternalFileEntity extends Abstrac
         }
     }
 
+    @Override
     public boolean isStreaming() {
         return false;
     }

Modified: httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalInputStreamEntity.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalInputStreamEntity.java?rev=1570959&r1=1570958&r2=1570959&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalInputStreamEntity.java
(original)
+++ httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalInputStreamEntity.java
Sun Feb 23 02:37:29 2014
@@ -49,18 +49,22 @@ class InternalInputStreamEntity extends 
         }
     }
 
+    @Override
     public boolean isRepeatable() {
         return false;
     }
 
+    @Override
     public long getContentLength() {
         return this.length;
     }
 
+    @Override
     public InputStream getContent() throws IOException {
         return this.content;
     }
 
+    @Override
     public void writeTo(final OutputStream outstream) throws IOException {
         Args.notNull(outstream, "Output stream");
         final InputStream instream = this.content;
@@ -89,6 +93,7 @@ class InternalInputStreamEntity extends 
         }
     }
 
+    @Override
     public boolean isStreaming() {
         return true;
     }



Mime
View raw message