Misc code clean up to keepo the Eclipse error count trending downwards.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 12 Jan 2009 15:17:00 +0000 (15:17 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 12 Jan 2009 15:17:00 +0000 (15:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@733779 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/Apr.java
java/org/apache/tomcat/util/net/NioEndpoint.java

index d748856..2082365 100644 (file)
@@ -38,7 +38,7 @@ public class Apr {
             aprInfo = props.getProperty("tcn.info");
         }
         catch (Throwable t) {
-            ; // Nothing
+            // Do nothing
         }
     }
 }
index bc95a57..e46a2ac 100644 (file)
@@ -32,16 +32,13 @@ import java.nio.channels.ServerSocketChannel;
 import java.nio.channels.SocketChannel;
 import java.nio.channels.WritableByteChannel;
 import java.security.KeyStore;
-import java.util.Collection;
 import java.util.Iterator;
 import java.util.Set;
 import java.util.StringTokenizer;
 import java.util.concurrent.ConcurrentLinkedQueue;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.Executor;
-import java.util.concurrent.LinkedBlockingQueue;
 import java.util.concurrent.RejectedExecutionException;
-import java.util.concurrent.ThreadFactory;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.concurrent.atomic.AtomicLong;
@@ -1576,7 +1573,7 @@ public class NioEndpoint {
                 }
                 sc = attachment.getChannel();
                 sc.setSendFile(true);
-                WritableByteChannel wc =(WritableByteChannel) ((sc instanceof SecureNioChannel)?sc:sc.getIOChannel());
+                WritableByteChannel wc = ((sc instanceof SecureNioChannel)?sc:sc.getIOChannel());
                 
                 if (sc.getOutboundRemaining()>0) {
                     if (sc.flushOutbound()) {
@@ -1784,7 +1781,7 @@ public class NioEndpoint {
         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);}
         
-        public long getLastRegistered() { return lastRegistered; };
+        public long getLastRegistered() { return lastRegistered; }
         public void setLastRegistered(long reg) { lastRegistered = reg; }
         
         public void setSendfileData(SendfileData sf) { this.sendfileData = sf;}