Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49103
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 14 Apr 2010 22:19:33 +0000 (22:19 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 14 Apr 2010 22:19:33 +0000 (22:19 +0000)
Add @Override where appropriate

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@934222 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/Http11NioProtocol.java
java/org/apache/coyote/http11/Http11Protocol.java
java/org/apache/tomcat/util/net/AprEndpoint.java
java/org/apache/tomcat/util/net/NioEndpoint.java
java/org/apache/tomcat/util/net/jsse/JSSEImplementation.java

index c6374cf..2ba1d2a 100644 (file)
@@ -52,6 +52,7 @@ public class Http11NioProtocol extends AbstractHttp11Protocol {
     
     private static final Log log = LogFactory.getLog(Http11NioProtocol.class);
     
+    @Override
     protected Log getLog() { return log; }
     
     public Http11NioProtocol() {
index 2a8e3f9..cb7fe62 100644 (file)
@@ -55,6 +55,7 @@ public class Http11Protocol extends AbstractHttp11Protocol {
     private static final org.apache.juli.logging.Log log
         = org.apache.juli.logging.LogFactory.getLog(Http11Protocol.class);
     
+    @Override
     public Log getLog() { return log; }
 
 
index 1d80e74..42774f9 100644 (file)
@@ -358,6 +358,7 @@ public class AprEndpoint extends AbstractEndpoint {
     /**
      * Initialize the endpoint.
      */
+    @Override
     public void init()
         throws Exception {
 
@@ -515,6 +516,7 @@ public class AprEndpoint extends AbstractEndpoint {
     /**
      * Start the APR endpoint, creating acceptor, poller and sendfile threads.
      */
+    @Override
     public void start()
         throws Exception {
         // Initialize socket if not done before
@@ -580,6 +582,7 @@ public class AprEndpoint extends AbstractEndpoint {
     /**
      * Pause the endpoint, which will make it stop accepting new sockets.
      */
+    @Override
     public void pause() {
         if (running && !paused) {
             paused = true;
@@ -592,6 +595,7 @@ public class AprEndpoint extends AbstractEndpoint {
      * Resume the endpoint, which will make it start accepting new sockets
      * again.
      */
+    @Override
     public void resume() {
         if (running) {
             paused = false;
@@ -628,6 +632,7 @@ public class AprEndpoint extends AbstractEndpoint {
     /**
      * Deallocate APR memory pools, and close server socket.
      */
+    @Override
     public void destroy() throws Exception {
         if (running) {
             stop();
index 69a7e17..4692c9c 100644 (file)
@@ -478,6 +478,7 @@ public class NioEndpoint extends AbstractEndpoint {
     /**
      * Initialize the endpoint.
      */
+    @Override
     public void init()
         throws Exception {
 
@@ -569,6 +570,7 @@ public class NioEndpoint extends AbstractEndpoint {
     /**
      * Start the NIO endpoint, creating acceptor, poller threads.
      */
+    @Override
     public void start()
         throws Exception {
         // Initialize socket if not done before
@@ -608,6 +610,7 @@ public class NioEndpoint extends AbstractEndpoint {
     /**
      * Pause the endpoint, which will make it stop accepting new sockets.
      */
+    @Override
     public void pause() {
         if (running && !paused) {
             paused = true;
@@ -620,6 +623,7 @@ public class NioEndpoint extends AbstractEndpoint {
      * Resume the endpoint, which will make it start accepting new sockets
      * again.
      */
+    @Override
     public void resume() {
         if (running) {
             paused = false;
@@ -653,6 +657,7 @@ public class NioEndpoint extends AbstractEndpoint {
     /**
      * Deallocate NIO memory pools, and close server socket.
      */
+    @Override
     public void destroy() throws Exception {
         if (log.isDebugEnabled()) {
             log.debug("Destroy initiated for "+new InetSocketAddress(getAddress(),getPort()));
index 64e4011..94db07e 100644 (file)
@@ -64,6 +64,7 @@ public class JSSEImplementation extends SSLImplementation
         return ssls;
     }
 
+    @Override
     public SSLSupport getSSLSupport(SSLSession session) {
         SSLSupport ssls = factory.getSSLSupport(session);
         return ssls;