Author: markt Date: Mon Jan 30 20:38:45 2012 New Revision: 1237978 URL: http://svn.apache.org/viewvc?rev=1237978&view=rev Log: Removed unused code. Add final where appropriate.
Modified: tomcat/trunk/java/org/apache/jasper/compiler/AntCompiler.java Modified: tomcat/trunk/java/org/apache/jasper/compiler/AntCompiler.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/AntCompiler.java?rev=1237978&r1=1237977&r2=1237978&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/jasper/compiler/AntCompiler.java (original) +++ tomcat/trunk/java/org/apache/jasper/compiler/AntCompiler.java Mon Jan 30 20:38:45 2012 @@ -90,7 +90,7 @@ public class AntCompiler extends Compile public static class JasperAntLogger extends DefaultLogger { - protected StringBuilder reportBuf = new StringBuilder(); + protected final StringBuilder reportBuf = new StringBuilder(); @Override protected void printMessage(final String message, @@ -326,34 +326,25 @@ public class AntCompiler extends Compile /** * Wrapped PrintStream. */ - protected PrintStream wrapped = null; + protected final PrintStream wrapped; /** * Thread <-> PrintStream associations. */ - protected static ThreadLocal<PrintStream> streams = + protected static final ThreadLocal<PrintStream> streams = new ThreadLocal<PrintStream>(); /** * Thread <-> ByteArrayOutputStream associations. */ - protected static ThreadLocal<ByteArrayOutputStream> data = + protected static final ThreadLocal<ByteArrayOutputStream> data = new ThreadLocal<ByteArrayOutputStream>(); // --------------------------------------------------------- Public Methods - - /** - * @deprecated Unused. Will be removed in Tomcat 8.0.x. - */ - @Deprecated - public PrintStream getWrapped() { - return wrapped; - } - /** * Start capturing thread's output. */ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org