You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2019/05/09 19:30:46 UTC

[tomcat] 01/03: Fix Javadoc warnings

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 97e7bfbbb492a337044adf377a1d1ee9b0f8be2e
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu May 9 20:28:59 2019 +0100

    Fix Javadoc warnings
---
 java/org/apache/coyote/AbstractProtocol.java          | 15 +++++++++++++++
 java/org/apache/tomcat/util/net/AbstractEndpoint.java | 15 +++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/java/org/apache/coyote/AbstractProtocol.java b/java/org/apache/coyote/AbstractProtocol.java
index 4e35f43..6b93ef4 100644
--- a/java/org/apache/coyote/AbstractProtocol.java
+++ b/java/org/apache/coyote/AbstractProtocol.java
@@ -310,9 +310,24 @@ public abstract class AbstractProtocol<S> implements ProtocolHandler,
         return endpoint.getConnectionCount();
     }
 
+    /**
+     * NO-OP.
+     *
+     * @param threadCount Unused
+     *
+     * @Deprecated Will be removed in Tomcat 10.
+     */
     @Deprecated
     public void setAcceptorThreadCount(int threadCount) {
     }
+
+    /**
+     * Always returns 1.
+     *
+     * @return Always 1.
+     *
+     * @Deprecated Will be removed in Tomcat 10.
+     */
     @Deprecated
     public int getAcceptorThreadCount() {
       return 1;
diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index a33e192..79d137e 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -406,8 +406,23 @@ public abstract class AbstractEndpoint<S,U> {
      */
     protected int acceptorThreadCount = 1;
 
+    /**
+     * NO-OP.
+     *
+     * @param acceptorThreadCount Unused
+     *
+     * @Deprecated Will be removed in Tomcat 10.
+     */
     @Deprecated
     public void setAcceptorThreadCount(int acceptorThreadCount) {}
+
+    /**
+     * Always returns 1.
+     *
+     * @return Always 1.
+     *
+     * @Deprecated Will be removed in Tomcat 10.
+     */
     @Deprecated
     public int getAcceptorThreadCount() { return 1; }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org