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 2012/12/30 23:55:29 UTC

svn commit: r1427013 - /tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java

Author: markt
Date: Sun Dec 30 22:55:29 2012
New Revision: 1427013

URL: http://svn.apache.org/viewvc?rev=1427013&view=rev
Log:
Deprecate unnecessary code

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?rev=1427013&r1=1427012&r2=1427013&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Sun Dec 30 22:55:29 2012
@@ -1425,7 +1425,16 @@ public class NioEndpoint extends Abstrac
         public boolean getComet() { return comet; }
         public void setCometNotify(boolean notify) { this.cometNotify = notify; }
         public boolean getCometNotify() { return cometNotify; }
+        /**
+         * @deprecated Unused (value is set but never read) - will be removed in
+         * Tomcat 8
+         */
+        @Deprecated
         public void setCometOps(int ops) { this.cometOps = ops; }
+        /**
+         * @deprecated Unused - will be removed in Tomcat 8
+         */
+        @Deprecated
         public int getCometOps() { return cometOps; }
         public NioChannel getChannel() { return getSocket();}
         public void setChannel(NioChannel channel) { this.socket = channel;}
@@ -1456,7 +1465,15 @@ public class NioEndpoint extends Abstrac
         public void awaitReadLatch(long timeout, TimeUnit unit) throws InterruptedException { awaitLatch(readLatch,timeout,unit);}
         public void awaitWriteLatch(long timeout, TimeUnit unit) throws InterruptedException { awaitLatch(writeLatch,timeout,unit);}
 
+        /**
+         * @deprecated Unused - will be removed in Tomcat 8
+         */
+        @Deprecated
         public long getLastRegistered() { return lastRegistered; }
+        /**
+         * @deprecated Unused - will be removed in Tomcat 8
+         */
+        @Deprecated
         public void setLastRegistered(long reg) { lastRegistered = reg; }
 
         public void setSendfileData(SendfileData sf) { this.sendfileData = sf;}



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