hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r954343 - in /httpcomponents/httpcore/trunk: httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/ httpcore-contrib/src/main/java/org/apache/http/contrib/compress/ httpcore-contrib/src/main/java/org/apache/http/contrib/sip/
Date Mon, 14 Jun 2010 01:34:21 GMT
Author: sebb
Date: Mon Jun 14 01:34:19 2010
New Revision: 954343

URL: http://svn.apache.org/viewvc?rev=954343&view=rev
Log:
Missing @Override markers

Modified:
    httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/HttpListener.java
    httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/HttpWorker.java
    httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/compress/GzipCompressingEntity.java
    httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/compress/GzipDecompressingEntity.java
    httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/BasicSipLineParser.java
    httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/BufferedCompactHeader.java
    httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/SipVersion.java

Modified: httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/HttpListener.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/HttpListener.java?rev=954343&r1=954342&r2=954343&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/HttpListener.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/HttpListener.java
Mon Jun 14 01:34:19 2010
@@ -62,6 +62,7 @@ class HttpListener extends Thread {
         return this.exception;
     }
 
+    @Override
     public void run() {
         while (!Thread.interrupted() && !this.shutdown) {
             try {

Modified: httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/HttpWorker.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/HttpWorker.java?rev=954343&r1=954342&r2=954343&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/HttpWorker.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/HttpWorker.java
Mon Jun 14 01:34:19 2010
@@ -60,6 +60,7 @@ class HttpWorker extends Thread {
         return this.exception;
     }
 
+    @Override
     public void run() {
         this.workercallback.started(this);
         try {

Modified: httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/compress/GzipCompressingEntity.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/compress/GzipCompressingEntity.java?rev=954343&r1=954342&r2=954343&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/compress/GzipCompressingEntity.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/compress/GzipCompressingEntity.java
Mon Jun 14 01:34:19 2010
@@ -52,19 +52,23 @@ public class GzipCompressingEntity exten
         super(entity);
     }
 
+    @Override
     public Header getContentEncoding() {
         return new BasicHeader(HTTP.CONTENT_ENCODING, GZIP_CODEC);
     }
 
+    @Override
     public long getContentLength() {
         return -1;
     }
 
+    @Override
     public boolean isChunked() {
         // force content chunking
         return true;
     }
 
+    @Override
     public void writeTo(final OutputStream outstream) throws IOException {
         if (outstream == null) {
             throw new IllegalArgumentException("Output stream may not be null");

Modified: httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/compress/GzipDecompressingEntity.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/compress/GzipDecompressingEntity.java?rev=954343&r1=954342&r2=954343&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/compress/GzipDecompressingEntity.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/compress/GzipDecompressingEntity.java
Mon Jun 14 01:34:19 2010
@@ -42,22 +42,24 @@ import org.apache.http.entity.HttpEntity
  */
 public class GzipDecompressingEntity extends HttpEntityWrapper {
 
-      public GzipDecompressingEntity(final HttpEntity entity) {
-          super(entity);
-      }
-
-      public InputStream getContent()
-          throws IOException, IllegalStateException {
+    public GzipDecompressingEntity(final HttpEntity entity) {
+        super(entity);
+    }
+
+    @Override
+    public InputStream getContent()
+        throws IOException, IllegalStateException {
 
           // the wrapped entity's getContent() decides about repeatability
-          InputStream wrappedin = wrappedEntity.getContent();
+        InputStream wrappedin = wrappedEntity.getContent();
 
-          return new GZIPInputStream(wrappedin);
-      }
+        return new GZIPInputStream(wrappedin);
+    }
 
-      public long getContentLength() {
-          // length of ungzipped content not known in advance
-          return -1;
-      }
+    @Override
+    public long getContentLength() {
+        // length of ungzipped content not known in advance
+        return -1;
+    }
 
 } // class GzipDecompressingEntity

Modified: httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/BasicSipLineParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/BasicSipLineParser.java?rev=954343&r1=954342&r2=954343&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/BasicSipLineParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/BasicSipLineParser.java
Mon Jun 14 01:34:19 2010
@@ -65,6 +65,7 @@ public class BasicSipLineParser extends 
 
 
     // non-javadoc, see interface LineParser
+    @Override
     public Header parseHeader(CharArrayBuffer buffer)
         throws ParseException {
 

Modified: httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/BufferedCompactHeader.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/BufferedCompactHeader.java?rev=954343&r1=954342&r2=954343&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/BufferedCompactHeader.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/BufferedCompactHeader.java
Mon Jun 14 01:34:19 2010
@@ -149,10 +149,12 @@ public class BufferedCompactHeader
         return this.buffer;
     }
 
+    @Override
     public String toString() {
         return this.buffer.toString();
     }
 
+    @Override
     public Object clone() throws CloneNotSupportedException {
         // buffer is considered immutable
         // no need to make a copy of it

Modified: httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/SipVersion.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/SipVersion.java?rev=954343&r1=954342&r2=954343&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/SipVersion.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-contrib/src/main/java/org/apache/http/contrib/sip/SipVersion.java
Mon Jun 14 01:34:19 2010
@@ -71,6 +71,7 @@ public final class SipVersion extends Pr
      *
      * @return  an instance of {@link SipVersion} with the argument version
      */
+    @Override
     public ProtocolVersion forVersion(int major, int minor) {
 
         if ((major == this.major) && (minor == this.minor)) {



Mime
View raw message