hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1641929 - in /httpcomponents/httpcore/trunk: httpcore-nio/src/examples/org/apache/http/examples/nio/ httpcore/src/examples/org/apache/http/examples/ httpcore/src/main/java/org/apache/http/ httpcore/src/main/java/org/apache/http/util/
Date Wed, 26 Nov 2014 20:29:34 GMT
Author: olegk
Date: Wed Nov 26 20:29:33 2014
New Revision: 1641929

URL: http://svn.apache.org/r1641929
Log:
Missing @Override annotations

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/ElementalEchoServer.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/PipeliningHttpClient.java
    httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalReverseProxy.java
    httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/HttpFileServer.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpClientConnection.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/CharArrayBuffer.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/ElementalEchoServer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/ElementalEchoServer.java?rev=1641929&r1=1641928&r2=1641929&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/ElementalEchoServer.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/ElementalEchoServer.java
Wed Nov 26 20:29:33 2014
@@ -57,12 +57,14 @@ public class ElementalEchoServer {
 
         private final ByteBuffer buffer = ByteBuffer.allocate(1024);
 
+        @Override
         public void connected(IOSession session) {
             System.out.println("connected");
             session.setEventMask(EventMask.READ);
             session.setSocketTimeout(20000);
         }
 
+        @Override
         public void inputReady(final IOSession session) {
             System.out.println("readable");
             try {
@@ -80,6 +82,7 @@ public class ElementalEchoServer {
             }
         }
 
+        @Override
         public void outputReady(final IOSession session) {
             System.out.println("writeable");
             try {
@@ -94,11 +97,13 @@ public class ElementalEchoServer {
             }
         }
 
+        @Override
         public void timeout(final IOSession session) {
             System.out.println("timeout");
             session.close();
         }
 
+        @Override
         public void disconnected(final IOSession session) {
             System.out.println("disconnected");
         }

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java?rev=1641929&r1=1641928&r2=1641929&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java
Wed Nov 26 20:29:33 2014
@@ -91,6 +91,7 @@ public class NHttpClient {
         // Run the I/O reactor in a separate thread
         Thread t = new Thread(new Runnable() {
 
+            @Override
             public void run() {
                 try {
                     // Ready to go!
@@ -126,16 +127,19 @@ public class NHttpClient {
                     // Handle HTTP response from a callback
                     new FutureCallback<HttpResponse>() {
 
+                @Override
                 public void completed(final HttpResponse response) {
                     latch.countDown();
                     System.out.println(target + "->" + response.getStatusLine());
                 }
 
+                @Override
                 public void failed(final Exception ex) {
                     latch.countDown();
                     System.out.println(target + "->" + ex);
                 }
 
+                @Override
                 public void cancelled() {
                     latch.countDown();
                     System.out.println(target + " cancelled");

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java?rev=1641929&r1=1641928&r2=1641929&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java
Wed Nov 26 20:29:33 2014
@@ -123,6 +123,7 @@ public class NHttpFileServer {
             this.docRoot = docRoot;
         }
 
+        @Override
         public HttpAsyncRequestConsumer<HttpRequest> processRequest(
                 final HttpRequest request,
                 final HttpContext context) {
@@ -130,6 +131,7 @@ public class NHttpFileServer {
             return new BasicAsyncRequestConsumer();
         }
 
+        @Override
         public void handle(
                 final HttpRequest request,
                 final HttpAsyncExchange httpexchange,

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java?rev=1641929&r1=1641928&r2=1641929&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
Wed Nov 26 20:29:33 2014
@@ -171,6 +171,7 @@ public class NHttpReverseProxy {
 
         Thread t = new Thread(new Runnable() {
 
+            @Override
             public void run() {
                 try {
                     connectingIOReactor.execute(connectingEventDispatch);
@@ -350,6 +351,7 @@ public class NHttpReverseProxy {
             this.counter = new AtomicLong(1);
         }
 
+        @Override
         public HttpAsyncRequestConsumer<ProxyHttpExchange> processRequest(
                 final HttpRequest request,
                 final HttpContext context) {
@@ -367,6 +369,7 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public void handle(
                 final ProxyHttpExchange httpExchange,
                 final HttpAsyncExchange responseTrigger,
@@ -416,9 +419,11 @@ public class NHttpReverseProxy {
             this.connPool = connPool;
         }
 
+        @Override
         public void close() throws IOException {
         }
 
+        @Override
         public void requestReceived(final HttpRequest request) {
             synchronized (this.httpExchange) {
                 System.out.println("[client->proxy] " + this.httpExchange.getId() + "
" + request.getRequestLine());
@@ -430,6 +435,7 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public void consumeContent(
                 final ContentDecoder decoder, final IOControl ioctrl) throws IOException
{
             synchronized (this.httpExchange) {
@@ -458,6 +464,7 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public void requestCompleted(final HttpContext context) {
             synchronized (this.httpExchange) {
                 this.completed = true;;
@@ -470,18 +477,22 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public Exception getException() {
             return null;
         }
 
+        @Override
         public ProxyHttpExchange getResult() {
             return this.httpExchange;
         }
 
+        @Override
         public boolean isDone() {
             return this.completed;
         }
 
+        @Override
         public void failed(final Exception ex) {
             System.out.println("[client->proxy] " + ex.toString());
         }
@@ -497,15 +508,18 @@ public class NHttpReverseProxy {
             this.httpExchange = httpExchange;
         }
 
+        @Override
         public void close() throws IOException {
         }
 
+        @Override
         public HttpHost getTarget() {
             synchronized (this.httpExchange) {
                 return this.httpExchange.getTarget();
             }
         }
 
+        @Override
         public HttpRequest generateRequest() {
             synchronized (this.httpExchange) {
                 HttpRequest request = this.httpExchange.getRequest();
@@ -522,6 +536,7 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public void produceContent(
                 final ContentEncoder encoder, final IOControl ioctrl) throws IOException
{
             synchronized (this.httpExchange) {
@@ -554,19 +569,23 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public void requestCompleted(final HttpContext context) {
             synchronized (this.httpExchange) {
                 System.out.println("[proxy->origin] " + this.httpExchange.getId() + "
request completed");
             }
         }
 
+        @Override
         public boolean isRepeatable() {
             return false;
         }
 
+        @Override
         public void resetRequest() {
         }
 
+        @Override
         public void failed(final Exception ex) {
             System.out.println("[proxy->origin] " + ex.toString());
         }
@@ -584,9 +603,11 @@ public class NHttpReverseProxy {
             this.httpExchange = httpExchange;
         }
 
+        @Override
         public void close() throws IOException {
         }
 
+        @Override
         public void responseReceived(final HttpResponse response) {
             synchronized (this.httpExchange) {
                 System.out.println("[proxy<-origin] " + this.httpExchange.getId() + "
" + response.getStatusLine());
@@ -599,6 +620,7 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public void consumeContent(
                 final ContentDecoder decoder, final IOControl ioctrl) throws IOException
{
             synchronized (this.httpExchange) {
@@ -627,6 +649,7 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public void responseCompleted(final HttpContext context) {
             synchronized (this.httpExchange) {
                 if (this.completed) {
@@ -642,6 +665,7 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public void failed(final Exception ex) {
             synchronized (this.httpExchange) {
                 if (this.completed) {
@@ -665,6 +689,7 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public boolean cancel() {
             synchronized (this.httpExchange) {
                 if (this.completed) {
@@ -675,14 +700,17 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public ProxyHttpExchange getResult() {
             return this.httpExchange;
         }
 
+        @Override
         public Exception getException() {
             return null;
         }
 
+        @Override
         public boolean isDone() {
             return this.completed;
         }
@@ -698,10 +726,12 @@ public class NHttpReverseProxy {
             this.httpExchange = httpExchange;
         }
 
+        @Override
         public void close() throws IOException {
             this.httpExchange.reset();
         }
 
+        @Override
         public HttpResponse generateResponse() {
             synchronized (this.httpExchange) {
                 HttpResponse response = this.httpExchange.getResponse();
@@ -713,6 +743,7 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public void produceContent(
                 final ContentEncoder encoder, final IOControl ioctrl) throws IOException
{
             synchronized (this.httpExchange) {
@@ -745,12 +776,14 @@ public class NHttpReverseProxy {
             }
         }
 
+        @Override
         public void responseCompleted(final HttpContext context) {
             synchronized (this.httpExchange) {
                 System.out.println("[client<-proxy] " + this.httpExchange.getId() + "
response completed");
             }
         }
 
+        @Override
         public void failed(final Exception ex) {
             System.out.println("[client<-proxy] " + ex.toString());
         }

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/PipeliningHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/PipeliningHttpClient.java?rev=1641929&r1=1641928&r2=1641929&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/PipeliningHttpClient.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/PipeliningHttpClient.java
Wed Nov 26 20:29:33 2014
@@ -93,6 +93,7 @@ public class PipeliningHttpClient {
         // Run the I/O reactor in a separate thread
         Thread t = new Thread(new Runnable() {
 
+            @Override
             public void run() {
                 try {
                     // Ready to go!

Modified: httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalReverseProxy.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalReverseProxy.java?rev=1641929&r1=1641928&r2=1641929&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalReverseProxy.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalReverseProxy.java
Wed Nov 26 20:29:33 2014
@@ -109,6 +109,7 @@ public class ElementalReverseProxy {
             this.connStrategy = DefaultConnectionReuseStrategy.INSTANCE;
         }
 
+        @Override
         public void handle(
                 final HttpRequest request,
                 final HttpResponse response,

Modified: httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/HttpFileServer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/HttpFileServer.java?rev=1641929&r1=1641928&r2=1641929&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/HttpFileServer.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/HttpFileServer.java
Wed Nov 26 20:29:33 2014
@@ -139,6 +139,7 @@ public class HttpFileServer {
             this.docRoot = docRoot;
         }
 
+        @Override
         public void handle(
                 final HttpRequest request,
                 final HttpResponse response,

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpClientConnection.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpClientConnection.java?rev=1641929&r1=1641928&r2=1641929&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpClientConnection.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpClientConnection.java
Wed Nov 26 20:29:33 2014
@@ -84,6 +84,7 @@ public interface HttpClientConnection ex
      *
      * @throws IOException in case of an I/O error
      */
+    @Override
     void flush() throws IOException;
 
 }

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/CharArrayBuffer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/CharArrayBuffer.java?rev=1641929&r1=1641928&r2=1641929&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/CharArrayBuffer.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/CharArrayBuffer.java
Wed Nov 26 20:29:33 2014
@@ -259,6 +259,7 @@ public final class CharArrayBuffer imple
      * @throws     IndexOutOfBoundsException  if {@code index} is
      *             negative or greater than or equal to {@link #length()}.
      */
+    @Override
     public char charAt(final int i) {
         return this.buffer[i];
     }
@@ -288,6 +289,7 @@ public final class CharArrayBuffer imple
      *
      * @return  the length of the buffer
      */
+    @Override
     public int length() {
         return this.len;
     }



Mime
View raw message