From: markt Date: Mon, 12 Jan 2009 15:17:00 +0000 (+0000) Subject: Misc code clean up to keepo the Eclipse error count trending downwards. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c60f54dda6c2987437021bd6c8f6d74c9bd21462;p=tomcat7.0 Misc code clean up to keepo the Eclipse error count trending downwards. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@733779 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/Apr.java b/java/org/apache/tomcat/Apr.java index d7488567b..20823653e 100644 --- a/java/org/apache/tomcat/Apr.java +++ b/java/org/apache/tomcat/Apr.java @@ -38,7 +38,7 @@ public class Apr { aprInfo = props.getProperty("tcn.info"); } catch (Throwable t) { - ; // Nothing + // Do nothing } } } diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index bc95a578f..e46a2ac76 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -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;}