tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832957 - in /tomcat/trunk/java/org/apache/tomcat: buildutil/ util/buf/ util/digester/ util/http/ util/http/fileupload/ util/log/ util/modeler/ util/modeler/modules/ util/net/ util/net/jsse/ util/threads/
Date Thu, 05 Nov 2009 01:22:15 GMT
Author: markt
Date: Thu Nov  5 01:22:13 2009
New Revision: 832957

URL: http://svn.apache.org/viewvc?rev=832957&view=rev
Log:
Partial fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48132
Patch provided by sebb
This is the final patch for this bug fix.

Modified:
    tomcat/trunk/java/org/apache/tomcat/buildutil/Txt2Html.java
    tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java
    tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java
    tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java
    tomcat/trunk/java/org/apache/tomcat/util/buf/CharChunk.java
    tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java
    tomcat/trunk/java/org/apache/tomcat/util/buf/StringCache.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/CallMethodRule.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/CallParamRule.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/Digester.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/FactoryCreateRule.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/NodeCreateRule.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/ObjectCreateRule.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/ObjectParamRule.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/PathCallParamRule.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/SetNextRule.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/SetRootRule.java
    tomcat/trunk/java/org/apache/tomcat/util/digester/SetTopRule.java
    tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java
    tomcat/trunk/java/org/apache/tomcat/util/http/MimeHeaders.java
    tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java
    tomcat/trunk/java/org/apache/tomcat/util/http/ServerCookie.java
    tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DefaultFileItem.java
    tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java
    tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DiskFileUpload.java
    tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileUpload.java
    tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java
    tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/ThresholdingOutputStream.java
    tomcat/trunk/java/org/apache/tomcat/util/log/SystemLogHandler.java
    tomcat/trunk/java/org/apache/tomcat/util/modeler/BaseModelMBean.java
    tomcat/trunk/java/org/apache/tomcat/util/modeler/ManagedBean.java
    tomcat/trunk/java/org/apache/tomcat/util/modeler/NotificationInfo.java
    tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsDOMSource.java
    tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsDigesterSource.java
    tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsIntrospectionSource.java
    tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsSerSource.java
    tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansSource.java
    tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
    tomcat/trunk/java/org/apache/tomcat/util/net/DefaultServerSocketFactory.java
    tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java
    tomcat/trunk/java/org/apache/tomcat/util/net/NioChannel.java
    tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
    tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java
    tomcat/trunk/java/org/apache/tomcat/util/net/URL.java
    tomcat/trunk/java/org/apache/tomcat/util/net/jsse/JSSEImplementation.java
    tomcat/trunk/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java
    tomcat/trunk/java/org/apache/tomcat/util/threads/TaskQueue.java

Modified: tomcat/trunk/java/org/apache/tomcat/buildutil/Txt2Html.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/buildutil/Txt2Html.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/buildutil/Txt2Html.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/buildutil/Txt2Html.java Thu Nov  5 01:22:13 2009
@@ -75,6 +75,7 @@
      * @param BuildException Thrown if an error occurs during execution of
      *    this task.
      */
+    @Override
     public void execute() 
         throws BuildException 
     {

Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java Thu Nov  5 01:22:13 2009
@@ -128,11 +128,13 @@
     
     /** Overriden - will do nothing but reset internal state.
      */
+    @Override
     public  final void close() throws IOException {
         // NOTHING
         // Calling super.close() would reset out and cb.
     }
     
+    @Override
     public  final int read(char cbuf[], int off, int len)
         throws IOException
     {
@@ -167,15 +169,18 @@
     public IntermediateInputStream() {
     }
     
+    @Override
     public  final void close() throws IOException {
         // shouldn't be called - we filter it out in writer
         throw new IOException("close() called - shouldn't happen ");
     }
     
+    @Override
     public  final  int read(byte cbuf[], int off, int len) throws IOException {
         return bc.substract(cbuf, off, len);
     }
     
+    @Override
     public  final int read() throws IOException {
         return bc.substract();
     }

Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java Thu Nov  5 01:22:13 2009
@@ -481,6 +481,7 @@
     
     // -------------------- Conversion and getters --------------------
 
+    @Override
     public String toString() {
         if (null == buff) {
             return null;

Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java Thu Nov  5 01:22:13 2009
@@ -177,6 +177,7 @@
     
     /** Overriden - will do nothing but reset internal state.
      */
+    @Override
     public  final void close() throws IOException {
 	// NOTHING
 	// Calling super.close() would reset out and cb.
@@ -185,12 +186,14 @@
     /**
      *  Flush the characters only
      */ 
+    @Override
     public  final void flush() throws IOException {
 	// Will flushBuffer and out()
 	// flushBuffer put any remaining chars in the byte[] 
 	super.flush();
     }
     
+    @Override
     public  final void write(char cbuf[], int off, int len) throws IOException {
 	// will do the conversion and call write on the output stream
 	super.write( cbuf, off, len );
@@ -226,16 +229,19 @@
 	    this.tbuff=tbuff;
     }
     
+    @Override
     public  final void close() throws IOException {
 	// shouldn't be called - we filter it out in writer
 	throw new IOException("close() called - shouldn't happen ");
     }
     
+    @Override
     public  final void flush() throws IOException {
 	// nothing - write will go directly to the buffer,
 	// we don't keep any state
     }
     
+    @Override
     public  final  void write(byte cbuf[], int off, int len) throws IOException {
 	// will do the conversion and call write on the output stream
 	if( enabled ) {
@@ -243,6 +249,7 @@
 	}
     }
     
+    @Override
     public  final void write( int i ) throws IOException {
 	throw new IOException("write( int ) called - shouldn't happen ");
     }

Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/CharChunk.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/CharChunk.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/CharChunk.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/CharChunk.java Thu Nov  5 01:22:13 2009
@@ -483,6 +483,7 @@
     
     // -------------------- Conversion and getters --------------------
 
+    @Override
     public String toString() {
         if (null == buff) {
             return null;

Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java Thu Nov  5 01:22:13 2009
@@ -185,6 +185,7 @@
 
     /** Compute the string value
      */
+    @Override
     public String toString() {
         if( hasStrValue ) return strValue;
         
@@ -400,6 +401,7 @@
     
 
     // -------------------- Hash code  --------------------
+    @Override
     public  int hashCode() {
         if( hasHashCode ) return hashCode;
         int code = 0;

Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/StringCache.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/StringCache.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/StringCache.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/StringCache.java Thu Nov  5 01:22:13 2009
@@ -632,12 +632,15 @@
         public String enc = null;
         public String value = null;
 
+        @Override
         public String toString() {
             return value;
         }
+        @Override
         public int hashCode() {
             return value.hashCode();
         }
+        @Override
         public boolean equals(Object obj) {
             if (obj instanceof ByteEntry) {
                 return value.equals(((ByteEntry) obj).value);
@@ -656,12 +659,15 @@
         public char[] name = null;
         public String value = null;
 
+        @Override
         public String toString() {
             return value;
         }
+        @Override
         public int hashCode() {
             return value.hashCode();
         }
+        @Override
         public boolean equals(Object obj) {
             if (obj instanceof CharEntry) {
                 return value.equals(((CharEntry) obj).value);

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/CallMethodRule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/CallMethodRule.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/CallMethodRule.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/CallMethodRule.java Thu Nov  5 01:22:13 2009
@@ -343,6 +343,7 @@
      * Set the associated digester.
      * If needed, this class loads the parameter classes from their names.
      */
+    @Override
     public void setDigester(Digester digester)
     {
         // call superclass
@@ -373,6 +374,7 @@
      *   the element name otherwise
      * @param attributes The attribute list for this element
      */
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
             throws Exception {
 
@@ -398,6 +400,7 @@
      *   the element name otherwise
      * @param bodyText The body text of this element
      */
+    @Override
     public void body(String namespace, String name, String bodyText)
             throws Exception {
 
@@ -417,6 +420,7 @@
      * @param name the local name if the parser is namespace aware, or just 
      *   the element name otherwise
      */
+    @Override
     public void end(String namespace, String name) throws Exception {
 
         // Retrieve or construct the parameter values array
@@ -535,6 +539,7 @@
     /**
      * Clean up after parsing is complete.
      */
+    @Override
     public void finish() throws Exception {
 
         bodyText = null;
@@ -554,6 +559,7 @@
     /**
      * Render a printable version of this Rule.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("CallMethodRule[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/CallParamRule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/CallParamRule.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/CallParamRule.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/CallParamRule.java Thu Nov  5 01:22:13 2009
@@ -146,6 +146,7 @@
      *   the element name otherwise
      * @param attributes The attribute list for this element
      */
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
             throws Exception {
 
@@ -192,6 +193,7 @@
      *   the element name otherwise
      * @param bodyText The body text of this element
      */
+    @Override
     public void body(String namespace, String name, String bodyText)
             throws Exception {
 
@@ -210,6 +212,7 @@
     /**
      * Process any body texts now.
      */
+    @Override
     public void end(String namespace, String name) {
         if (bodyTextStack != null && !bodyTextStack.empty()) {
             // what we do now is push one parameter onto the top set of parameters
@@ -221,6 +224,7 @@
     /**
      * Render a printable version of this Rule.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("CallParamRule[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/Digester.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/Digester.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/Digester.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/Digester.java Thu Nov  5 01:22:13 2009
@@ -920,6 +920,7 @@
      *
      * @exception SAXException if a parsing error is to be reported
      */
+    @Override
     public void characters(char buffer[], int start, int length)
             throws SAXException {
 
@@ -937,6 +938,7 @@
      *
      * @exception SAXException if a parsing error is to be reported
      */
+    @Override
     public void endDocument() throws SAXException {
 
         if (saxLog.isDebugEnabled()) {
@@ -985,6 +987,7 @@
      *   empty string if qualified names are not available.
      * @exception SAXException if a parsing error is to be reported
      */
+    @Override
     public void endElement(String namespaceURI, String localName,
                            String qName) throws SAXException {
 
@@ -1081,6 +1084,7 @@
      *
      * @exception SAXException if a parsing error is to be reported
      */
+    @Override
     public void endPrefixMapping(String prefix) throws SAXException {
 
         if (saxLog.isDebugEnabled()) {
@@ -1113,6 +1117,7 @@
      *
      * @exception SAXException if a parsing error is to be reported
      */
+    @Override
     public void ignorableWhitespace(char buffer[], int start, int len)
             throws SAXException {
 
@@ -1134,6 +1139,7 @@
      *
      * @exception SAXException if a parsing error is to be reported
      */
+    @Override
     public void processingInstruction(String target, String data)
             throws SAXException {
 
@@ -1162,6 +1168,7 @@
      *
      * @param locator The new locator
      */
+    @Override
     public void setDocumentLocator(Locator locator) {
 
         if (saxLog.isDebugEnabled()) {
@@ -1180,6 +1187,7 @@
      *
      * @exception SAXException if a parsing error is to be reported
      */
+    @Override
     public void skippedEntity(String name) throws SAXException {
 
         if (saxLog.isDebugEnabled()) {
@@ -1196,6 +1204,7 @@
      *
      * @exception SAXException if a parsing error is to be reported
      */
+    @Override
     public void startDocument() throws SAXException {
 
         if (saxLog.isDebugEnabled()) {
@@ -1222,6 +1231,7 @@
      *   no attributes, it shall be an empty Attributes object. 
      * @exception SAXException if a parsing error is to be reported
      */
+    @Override
     public void startElement(String namespaceURI, String localName,
                              String qName, Attributes list)
             throws SAXException {
@@ -1296,6 +1306,7 @@
      *
      * @exception SAXException if a parsing error is to be reported
      */
+    @Override
     public void startPrefixMapping(String prefix, String namespaceURI)
             throws SAXException {
 
@@ -1324,6 +1335,7 @@
      * @param publicId The public identifier (if any)
      * @param systemId The system identifier (if any)
      */
+    @Override
     public void notationDecl(String name, String publicId, String systemId) {
 
         if (saxLog.isDebugEnabled()) {
@@ -1342,6 +1354,7 @@
      * @param systemId The system identifier (if any)
      * @param notation The name of the associated notation
      */
+    @Override
     public void unparsedEntityDecl(String name, String publicId,
                                    String systemId, String notation) {
 
@@ -1383,6 +1396,7 @@
      * @exception SAXException if a parsing exception occurs
      * 
      */
+    @Override
     public InputSource resolveEntity(String publicId, String systemId)
             throws SAXException {     
                 
@@ -1440,6 +1454,7 @@
      *
      * @exception SAXException if a parsing exception occurs
      */
+    @Override
     public void error(SAXParseException exception) throws SAXException {
 
         log.error("Parse Error at line " + exception.getLineNumber() +
@@ -1460,6 +1475,7 @@
      *
      * @exception SAXException if a parsing exception occurs
      */
+    @Override
     public void fatalError(SAXParseException exception) throws SAXException {
 
         log.error("Parse Fatal Error at line " + exception.getLineNumber() +
@@ -1480,6 +1496,7 @@
      *
      * @exception SAXException if a parsing exception occurs
      */
+    @Override
     public void warning(SAXParseException exception) throws SAXException {
          if (errorHandler != null) {
             log.warn("Parse Warning Error at line " + exception.getLineNumber() +

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/FactoryCreateRule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/FactoryCreateRule.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/FactoryCreateRule.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/FactoryCreateRule.java Thu Nov  5 01:22:13 2009
@@ -257,6 +257,7 @@
      *
      * @param attributes The attribute list of this element
      */
+    @Override
     public void begin(String namespace, String name, Attributes attributes) throws Exception {
         
         if (ignoreCreateExceptions) {
@@ -302,6 +303,7 @@
     /**
      * Process the end of this element.
      */
+    @Override
     public void end(String namespace, String name) throws Exception {
         
         // check if object was created 
@@ -333,6 +335,7 @@
     /**
      * Clean up after parsing is complete.
      */
+    @Override
     public void finish() throws Exception {
 
         if (attributeName != null) {
@@ -345,6 +348,7 @@
     /**
      * Render a printable version of this Rule.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("FactoryCreateRule[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/NodeCreateRule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/NodeCreateRule.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/NodeCreateRule.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/NodeCreateRule.java Thu Nov  5 01:22:13 2009
@@ -163,6 +163,7 @@
          * @param length the number of characters to read from the array
          * @throws SAXException if the DOM implementation throws an exception
          */
+        @Override
         public void characters(char[] ch, int start, int length)
             throws SAXException {
 
@@ -186,6 +187,7 @@
          * @param qName the qualified (prefixed) name
          * @throws SAXException if the DOM implementation throws an exception
          */
+        @Override
         public void endElement(String namespaceURI, String localName,
                                String qName)
             throws SAXException {
@@ -217,6 +219,7 @@
          *   supplied
          * @throws SAXException if the DOM implementation throws an exception
          */
+        @Override
         public void processingInstruction(String target, String data)
             throws SAXException {
             
@@ -239,6 +242,7 @@
          * @param atts the list of attributes
          * @throws SAXException if the DOM implementation throws an exception
          */
+        @Override
         public void startElement(String namespaceURI, String localName,
                                  String qName, Attributes atts)
             throws SAXException {
@@ -384,6 +388,7 @@
      * @param attributes The attribute list of this element
      * @throws Exception indicates a JAXP configuration problem
      */
+    @Override
     public void begin(String namespaceURI, String name, Attributes attributes)
         throws Exception {
 
@@ -425,6 +430,7 @@
      * @param name the local name if the parser is namespace aware, or just 
      *   the element name otherwise
      */
+    @Override
     public void end(String namespace, String name) throws Exception {
 
         digester.pop();

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/ObjectCreateRule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/ObjectCreateRule.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/ObjectCreateRule.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/ObjectCreateRule.java Thu Nov  5 01:22:13 2009
@@ -119,6 +119,7 @@
      *   the element name otherwise
      * @param attributes The attribute list for this element
      */
+    @Override
     public void begin(String namespace, String name, Attributes attributes)
             throws Exception {
 
@@ -152,6 +153,7 @@
      * @param name the local name if the parser is namespace aware, or just 
      *   the element name otherwise
      */
+    @Override
     public void end(String namespace, String name) throws Exception {
 
         Object top = digester.pop();
@@ -166,6 +168,7 @@
     /**
      * Render a printable version of this Rule.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ObjectCreateRule[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/ObjectParamRule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/ObjectParamRule.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/ObjectParamRule.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/ObjectParamRule.java Thu Nov  5 01:22:13 2009
@@ -91,6 +91,7 @@
      *
      * @param attributes The attribute list for this element
      */
+    @Override
     public void begin(String namespace, String name,
                       Attributes attributes) throws Exception {
         Object anAttribute = null;
@@ -111,6 +112,7 @@
     /**
      * Render a printable version of this Rule.
      */
+    @Override
     public String toString() {
         StringBuilder sb = new StringBuilder("ObjectParamRule[");
         sb.append("paramIndex=");

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/PathCallParamRule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/PathCallParamRule.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/PathCallParamRule.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/PathCallParamRule.java Thu Nov  5 01:22:13 2009
@@ -68,6 +68,7 @@
      * @param attributes The attribute list for this element
 
      */
+    @Override
     public void begin(String namespace, String name, Attributes attributes) throws Exception {
 
         String param = getDigester().getMatch();
@@ -82,6 +83,7 @@
     /**
      * Render a printable version of this Rule.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("PathCallParamRule[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/SetNextRule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/SetNextRule.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/SetNextRule.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/SetNextRule.java Thu Nov  5 01:22:13 2009
@@ -180,6 +180,7 @@
      * @param name the local name if the parser is namespace aware, or just 
      *   the element name otherwise
      */
+    @Override
     public void end(String namespace, String name) throws Exception {
 
         // Identify the objects to be used
@@ -207,6 +208,7 @@
     /**
      * Render a printable version of this Rule.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("SetNextRule[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertiesRule.java Thu Nov  5 01:22:13 2009
@@ -158,6 +158,7 @@
      *   the element name otherwise
      * @param attributes The attribute list for this element
      */
+    @Override
     public void begin(String namespace, String theName, Attributes attributes)
             throws Exception {
         
@@ -263,6 +264,7 @@
     /**
      * Render a printable version of this Rule.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("SetPropertiesRule[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/SetPropertyRule.java Thu Nov  5 01:22:13 2009
@@ -102,6 +102,7 @@
      * @exception NoSuchMethodException if the bean does not
      *  have a writeable property of the specified name
      */
+    @Override
     public void begin(String namespace, String theName, Attributes attributes)
             throws Exception {
 
@@ -146,6 +147,7 @@
     /**
      * Render a printable version of this Rule.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("SetPropertyRule[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/SetRootRule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/SetRootRule.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/SetRootRule.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/SetRootRule.java Thu Nov  5 01:22:13 2009
@@ -181,6 +181,7 @@
      * @param name the local name if the parser is namespace aware, or just 
      *   the element name otherwise
      */
+    @Override
     public void end(String namespace, String name) throws Exception {
 
         // Identify the objects to be used
@@ -208,6 +209,7 @@
     /**
      * Render a printable version of this Rule.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("SetRootRule[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/SetTopRule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/SetTopRule.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/SetTopRule.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/SetTopRule.java Thu Nov  5 01:22:13 2009
@@ -180,6 +180,7 @@
      * @param name the local name if the parser is namespace aware, or just 
      *   the element name otherwise
      */
+    @Override
     public void end(String namespace, String name) throws Exception {
 
         // Identify the objects to be used
@@ -208,6 +209,7 @@
     /**
      * Render a printable version of this Rule.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("SetTopRule[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java Thu Nov  5 01:22:13 2009
@@ -161,6 +161,7 @@
     /**
      * EXPENSIVE!!!  only for debugging.
      */
+    @Override
     public String toString() {
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/MimeHeaders.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/MimeHeaders.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/MimeHeaders.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/MimeHeaders.java Thu Nov  5 01:22:13 2009
@@ -135,6 +135,7 @@
     /**
      * EXPENSIVE!!!  only for debugging.
      */
+    @Override
     public String toString() {
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java Thu Nov  5 01:22:13 2009
@@ -80,6 +80,7 @@
         }
     }
 
+    @Override
     public void recycle() {
         super.recycle();
         paramHashStringArray.clear();

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/ServerCookie.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/ServerCookie.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/ServerCookie.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/ServerCookie.java Thu Nov  5 01:22:13 2009
@@ -59,6 +59,7 @@
         "EEE, dd-MMM-yyyy HH:mm:ss z";
     private static final ThreadLocal<DateFormat> OLD_COOKIE_FORMAT =
         new ThreadLocal<DateFormat>() {
+        @Override
         protected DateFormat initialValue() {
             DateFormat df =
                 new SimpleDateFormat(OLD_COOKIE_PATTERN, Locale.US);
@@ -186,6 +187,7 @@
 
     // -------------------- utils --------------------
 
+    @Override
     public String toString() {
         return "Cookie " + getName() + "=" + getValue() + " ; "
             + getVersion() + " " + getPath() + " " + getDomain();

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DefaultFileItem.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DefaultFileItem.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DefaultFileItem.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DefaultFileItem.java Thu Nov  5 01:22:13 2009
@@ -545,6 +545,7 @@
     /**
      * Removes the file contents from the temporary storage.
      */
+    @Override
     protected void finalize()
     {
         File outputFile = dfos.getFile();

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java Thu Nov  5 01:22:13 2009
@@ -100,6 +100,7 @@
      *
      * @exception IOException if an error occurs.
      */
+    @Override
     protected OutputStream getStream() throws IOException
     {
         return currentOutputStream;
@@ -114,6 +115,7 @@
      *
      * @exception IOException if an error occurs.
      */
+    @Override
     protected void thresholdReached() throws IOException
     {
         byte[] data = memoryOutputStream.toByteArray();

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DiskFileUpload.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DiskFileUpload.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DiskFileUpload.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DiskFileUpload.java Thu Nov  5 01:22:13 2009
@@ -97,6 +97,7 @@
      *
      * @return The factory class for new file items.
      */
+    @Override
     public FileItemFactory getFileItemFactory()
     {
         return fileItemFactory;
@@ -110,6 +111,7 @@
      *
      * @param factory The factory class for new file items.
      */
+    @Override
     public void setFileItemFactory(FileItemFactory factory)
     {
         this.fileItemFactory = (DefaultFileItemFactory) factory;

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileUpload.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileUpload.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileUpload.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileUpload.java Thu Nov  5 01:22:13 2009
@@ -91,6 +91,7 @@
      *
      * @return The factory class for new file items.
      */
+    @Override
     public FileItemFactory getFileItemFactory()
     {
         return fileItemFactory;
@@ -102,6 +103,7 @@
      *
      * @param factory The factory class for new file items.
      */
+    @Override
     public void setFileItemFactory(FileItemFactory factory)
     {
         this.fileItemFactory = factory;

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java Thu Nov  5 01:22:13 2009
@@ -757,6 +757,7 @@
      *
      * @return The string representation of this object.
      */
+    @Override
     public String toString()
     {
         StringBuilder sbTemp = new StringBuilder();

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/ThresholdingOutputStream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/ThresholdingOutputStream.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/ThresholdingOutputStream.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/ThresholdingOutputStream.java Thu Nov  5 01:22:13 2009
@@ -90,6 +90,7 @@
      *
      * @exception IOException if an error occurs.
      */
+    @Override
     public void write(int b) throws IOException
     {
         checkThreshold(1);
@@ -106,6 +107,7 @@
      *
      * @exception IOException if an error occurs.
      */
+    @Override
     public void write(byte b[]) throws IOException
     {
         checkThreshold(b.length);
@@ -124,6 +126,7 @@
      *
      * @exception IOException if an error occurs.
      */
+    @Override
     public void write(byte b[], int off, int len) throws IOException
     {
         checkThreshold(len);
@@ -138,6 +141,7 @@
      *
      * @exception IOException if an error occurs.
      */
+    @Override
     public void flush() throws IOException
     {
         getStream().flush();
@@ -150,6 +154,7 @@
      *
      * @exception IOException if an error occurs.
      */
+    @Override
     public void close() throws IOException
     {
         try

Modified: tomcat/trunk/java/org/apache/tomcat/util/log/SystemLogHandler.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/log/SystemLogHandler.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/log/SystemLogHandler.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/log/SystemLogHandler.java Thu Nov  5 01:22:13 2009
@@ -138,107 +138,133 @@
     // ---------------------------------------------------- PrintStream Methods
 
 
+    @Override
     public void flush() {
         findStream().flush();
     }
 
+    @Override
     public void close() {
         findStream().close();
     }
 
+    @Override
     public boolean checkError() {
         return findStream().checkError();
     }
 
+    @Override
     protected void setError() {
         //findStream().setError();
     }
 
+    @Override
     public void write(int b) {
         findStream().write(b);
     }
 
+    @Override
     public void write(byte[] b)
         throws IOException {
         findStream().write(b);
     }
 
+    @Override
     public void write(byte[] buf, int off, int len) {
         findStream().write(buf, off, len);
     }
 
+    @Override
     public void print(boolean b) {
         findStream().print(b);
     }
 
+    @Override
     public void print(char c) {
         findStream().print(c);
     }
 
+    @Override
     public void print(int i) {
         findStream().print(i);
     }
 
+    @Override
     public void print(long l) {
         findStream().print(l);
     }
 
+    @Override
     public void print(float f) {
         findStream().print(f);
     }
 
+    @Override
     public void print(double d) {
         findStream().print(d);
     }
 
+    @Override
     public void print(char[] s) {
         findStream().print(s);
     }
 
+    @Override
     public void print(String s) {
         findStream().print(s);
     }
 
+    @Override
     public void print(Object obj) {
         findStream().print(obj);
     }
 
+    @Override
     public void println() {
         findStream().println();
     }
 
+    @Override
     public void println(boolean x) {
         findStream().println(x);
     }
 
+    @Override
     public void println(char x) {
         findStream().println(x);
     }
 
+    @Override
     public void println(int x) {
         findStream().println(x);
     }
 
+    @Override
     public void println(long x) {
         findStream().println(x);
     }
 
+    @Override
     public void println(float x) {
         findStream().println(x);
     }
 
+    @Override
     public void println(double x) {
         findStream().println(x);
     }
 
+    @Override
     public void println(char[] x) {
         findStream().println(x);
     }
 
+    @Override
     public void println(String x) {
         findStream().println(x);
     }
 
+    @Override
     public void println(Object x) {
         findStream().println(x);
     }

Modified: tomcat/trunk/java/org/apache/tomcat/util/modeler/BaseModelMBean.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/modeler/BaseModelMBean.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/modeler/BaseModelMBean.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/modeler/BaseModelMBean.java Thu Nov  5 01:22:13 2009
@@ -444,6 +444,7 @@
 //        }
     }
 
+    @Override
     public String toString() {
         if( resource==null ) 
             return "BaseModelMbean[" + resourceType + "]";
@@ -1149,7 +1150,8 @@
 	    this.signature = signature;
 	}
 
-	public boolean equals(Object other) {
+	@Override
+    public boolean equals(Object other) {
 	    if(!(other instanceof MethodKey)) {
 		return false;
 	    }
@@ -1168,7 +1170,8 @@
 	    return true;
 	}
 
-	public int hashCode() {
+	@Override
+    public int hashCode() {
 	    return name.hashCode();
 	}
     }

Modified: tomcat/trunk/java/org/apache/tomcat/util/modeler/ManagedBean.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/modeler/ManagedBean.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/modeler/ManagedBean.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/modeler/ManagedBean.java Thu Nov  5 01:22:13 2009
@@ -460,6 +460,7 @@
     /**
      * Return a string representation of this managed bean.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("ManagedBean[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/modeler/NotificationInfo.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/modeler/NotificationInfo.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/modeler/NotificationInfo.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/modeler/NotificationInfo.java Thu Nov  5 01:22:13 2009
@@ -53,6 +53,7 @@
      *
      * @param description The new description
      */
+    @Override
     public void setDescription(String description) {
         super.setDescription(description);
         this.info = null;
@@ -64,6 +65,7 @@
      *
      * @param name The new name
      */
+    @Override
     public void setName(String name) {
         super.setName(name);
         this.info = null;
@@ -123,6 +125,7 @@
     /**
      * Return a string representation of this notification descriptor.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("NotificationInfo[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsDOMSource.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsDOMSource.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsDOMSource.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsDOMSource.java Thu Nov  5 01:22:13 2009
@@ -67,6 +67,7 @@
         this.source=source;
     }
 
+    @Override
     public List<ObjectName> loadDescriptors( Registry registry, String location,
                                  String type, Object source)
             throws Exception

Modified: tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsDigesterSource.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsDigesterSource.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsDigesterSource.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsDigesterSource.java Thu Nov  5 01:22:13 2009
@@ -204,6 +204,7 @@
         this.source=source;
     }
 
+    @Override
     public List<ObjectName> loadDescriptors( Registry registry, String location,
             String type, Object source) throws Exception {
         setRegistry(registry);

Modified: tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsIntrospectionSource.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsIntrospectionSource.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsIntrospectionSource.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsIntrospectionSource.java Thu Nov  5 01:22:13 2009
@@ -66,6 +66,7 @@
         this.source=source;
     }
 
+    @Override
     public List<ObjectName> loadDescriptors( Registry registry, String location,
             String type, Object source) throws Exception {
         setRegistry(registry);

Modified: tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsSerSource.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsSerSource.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsSerSource.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansDescriptorsSerSource.java Thu Nov  5 01:22:13 2009
@@ -59,6 +59,7 @@
         this.source=source;
     }
 
+    @Override
     public List<ObjectName> loadDescriptors( Registry registry, String location,
             String type, Object source) throws Exception {
         setRegistry(registry);

Modified: tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansSource.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansSource.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansSource.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/MbeansSource.java Thu Nov  5 01:22:13 2009
@@ -103,6 +103,7 @@
         return mbeans;
     }
 
+    @Override
     public List<ObjectName> loadDescriptors(Registry registry, String location,
             String type, Object source) throws Exception {
         setRegistry(registry);
@@ -267,6 +268,7 @@
         }
     }
     
+    @Override
     public void updateField( ObjectName oname, String name, 
                              Object value )
     {

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java Thu Nov  5 01:22:13 2009
@@ -100,7 +100,9 @@
      * Priority of the acceptor and poller threads.
      */
     protected int threadPriority = Thread.NORM_PRIORITY;
+    @Override
     public void setThreadPriority(int threadPriority) { this.threadPriority = threadPriority; }
+    @Override
     public int getThreadPriority() { return threadPriority; }
 
 

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/DefaultServerSocketFactory.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/DefaultServerSocketFactory.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/DefaultServerSocketFactory.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/DefaultServerSocketFactory.java Thu Nov  5 01:22:13 2009
@@ -40,27 +40,32 @@
         /* NOTHING */
     }
 
+    @Override
     public ServerSocket createSocket (int port)
     throws IOException {
         return  new ServerSocket (port);
     }
 
+    @Override
     public ServerSocket createSocket (int port, int backlog)
     throws IOException {
         return new ServerSocket (port, backlog);
     }
 
+    @Override
     public ServerSocket createSocket (int port, int backlog,
         InetAddress ifAddress)
     throws IOException {
         return new ServerSocket (port, backlog, ifAddress);
     }
  
+    @Override
     public Socket acceptSocket(ServerSocket socket)
  	throws IOException {
  	return socket.accept();
     }
  
+    @Override
     public void handshake(Socket sock)
  	throws IOException {
         // NOOP

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java Thu Nov  5 01:22:13 2009
@@ -64,6 +64,7 @@
     /**
      * Generic properties - currently only socket.XXX properties
      */
+    @Override
     public boolean setProperty(String name, String value) {
         final String socketName = "socket.";
         try {
@@ -89,7 +90,9 @@
      * Priority of the acceptor and poller threads.
      */
     protected int threadPriority = Thread.NORM_PRIORITY;
+    @Override
     public void setThreadPriority(int threadPriority) { this.threadPriority = threadPriority; }
+    @Override
     public int getThreadPriority() { return threadPriority; }
 
     

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioChannel.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioChannel.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/NioChannel.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/NioChannel.java Thu Nov  5 01:22:13 2009
@@ -191,6 +191,7 @@
         this.sc = IOChannel;
     }
 
+    @Override
     public String toString() {
         return super.toString()+":"+this.sc.toString();
     }

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=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Thu Nov  5 01:22:13 2009
@@ -134,6 +134,7 @@
      */
     protected ConcurrentLinkedQueue<SocketProcessor> processorCache = new ConcurrentLinkedQueue<SocketProcessor>() {
         protected AtomicInteger size = new AtomicInteger(0);
+        @Override
         public boolean offer(SocketProcessor sc) {
             sc.reset(null,null);
             boolean offer = socketProperties.getProcessorCache()==-1?true:size.get()<socketProperties.getProcessorCache();
@@ -148,6 +149,7 @@
             else return false;
         }
         
+        @Override
         public SocketProcessor poll() {
             SocketProcessor result = super.poll();
             if ( result != null ) {
@@ -156,6 +158,7 @@
             return result;
         }
         
+        @Override
         public void clear() {
             super.clear();
             size.set(0);
@@ -168,6 +171,7 @@
      */
     protected ConcurrentLinkedQueue<KeyAttachment> keyCache = new ConcurrentLinkedQueue<KeyAttachment>() {
         protected AtomicInteger size = new AtomicInteger(0);
+        @Override
         public boolean offer(KeyAttachment ka) {
             ka.reset();
             boolean offer = socketProperties.getKeyCache()==-1?true:size.get()<socketProperties.getKeyCache();
@@ -182,6 +186,7 @@
             else return false;
         }
 
+        @Override
         public KeyAttachment poll() {
             KeyAttachment result = super.poll();
             if ( result != null ) {
@@ -190,6 +195,7 @@
             return result;
         }
 
+        @Override
         public void clear() {
             super.clear();
             size.set(0);
@@ -202,6 +208,7 @@
      */
     protected ConcurrentLinkedQueue<PollerEvent> eventCache = new ConcurrentLinkedQueue<PollerEvent>() {
         protected AtomicInteger size = new AtomicInteger(0);
+        @Override
         public boolean offer(PollerEvent pe) {
             pe.reset();
             boolean offer = socketProperties.getEventCache()==-1?true:size.get()<socketProperties.getEventCache();
@@ -216,6 +223,7 @@
             else return false;
         }
 
+        @Override
         public PollerEvent poll() {
             PollerEvent result = super.poll();
             if ( result != null ) {
@@ -224,6 +232,7 @@
             return result;
         }
 
+        @Override
         public void clear() {
             super.clear();
             size.set(0);
@@ -237,6 +246,7 @@
     protected ConcurrentLinkedQueue<NioChannel> nioChannels = new ConcurrentLinkedQueue<NioChannel>() {
         protected AtomicInteger size = new AtomicInteger(0);
         protected AtomicInteger bytes = new AtomicInteger(0);
+        @Override
         public boolean offer(NioChannel socket) {
             boolean offer = socketProperties.getBufferPool()==-1?true:size.get()<socketProperties.getBufferPool();
             offer = offer && (socketProperties.getBufferPoolSize()==-1?true:(bytes.get()+socket.getBufferSize())<socketProperties.getBufferPoolSize());
@@ -252,6 +262,7 @@
             else return false;
         }
         
+        @Override
         public NioChannel poll() {
             NioChannel result = super.poll();
             if ( result != null ) {
@@ -261,6 +272,7 @@
             return result;
         }
         
+        @Override
         public void clear() {
             super.clear();
             size.set(0);
@@ -462,7 +474,9 @@
      * SSL engine.
      */
     protected boolean SSLEnabled = false;
+    @Override
     public boolean isSSLEnabled() { return SSLEnabled;}
+    @Override
     public void setSSLEnabled(boolean SSLEnabled) {this.SSLEnabled = SSLEnabled;}
 
     protected boolean secure = false;
@@ -547,6 +561,7 @@
      *
      * @return true if the endpoint is running, false otherwise
      */
+    @Override
     public boolean isRunning() {
         return running;
     }
@@ -557,6 +572,7 @@
      *
      * @return true if the endpoint is paused, false otherwise
      */
+    @Override
     public boolean isPaused() {
         return paused;
     }
@@ -1013,6 +1029,7 @@
             }//end if
         }//run
         
+        @Override
         public String toString() {
             return super.toString()+"[intOps="+this.interestOps+"]";
         }

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java Thu Nov  5 01:22:13 2009
@@ -73,6 +73,7 @@
         this.sslEngine = engine;
         reset();
     }
+    @Override
     public void reset() throws IOException {
         super.reset();
         netOutBuffer.position(0);
@@ -87,6 +88,7 @@
         initHandshakeStatus = sslEngine.getHandshakeStatus();
     }
     
+    @Override
     public int getBufferSize() {
         int size = super.getBufferSize();
         size += netInBuffer!=null?netInBuffer.capacity():0;
@@ -103,6 +105,7 @@
      * been flushed out and is empty
      * @return boolean
      */
+    @Override
     public boolean flush(boolean block, Selector s, long timeout,MutableInteger lastWrite) throws IOException {
         if (!block) {
             flush(netOutBuffer);
@@ -139,6 +142,7 @@
      * @return int - 0 if hand shake is complete, otherwise it returns a SelectionKey interestOps value
      * @throws IOException
      */
+    @Override
     public int handshake(boolean read, boolean write) throws IOException {
         if ( initHandshakeComplete ) return 0; //we have done our initial handshake
         
@@ -287,6 +291,7 @@
      * @throws IOException if there is data on the outgoing network buffer and we are unable to flush it
      * @todo Implement this java.io.Closeable method
      */
+    @Override
     public void close() throws IOException {
         if (closing) return;
         closing = true;
@@ -317,6 +322,7 @@
      * @param force boolean
      * @throws IOException
      */
+    @Override
     public void close(boolean force) throws IOException {
         try {
             close();
@@ -338,6 +344,7 @@
      * @throws IllegalArgumentException if the destination buffer is different than bufHandler.getReadBuffer()
      * @todo Implement this java.nio.channels.ReadableByteChannel method
      */
+    @Override
     public int read(ByteBuffer dst) throws IOException {
         //if we want to take advantage of the expand function, make sure we only use the ApplicationBufferHandler's buffers
         if ( dst != bufHandler.getReadBuffer() ) throw new IllegalArgumentException("You can only read using the application read buffer provided by the handler.");
@@ -392,6 +399,7 @@
      * @throws IOException If some other I/O error occurs
      * @todo Implement this java.nio.channels.WritableByteChannel method
      */
+    @Override
     public int write(ByteBuffer src) throws IOException {
         if ( src == this.netOutBuffer ) {
             //we can get here through a recursive call
@@ -458,14 +466,17 @@
         public ByteBuffer getWriteBuffer();
     }
 
+    @Override
     public ApplicationBufferHandler getBufHandler() {
         return bufHandler;
     }
 
+    @Override
     public boolean isInitHandshakeComplete() {
         return initHandshakeComplete;
     }
 
+    @Override
     public boolean isClosing() {
         return closing;
     }
@@ -482,6 +493,7 @@
         this.bufHandler = bufHandler;
     }
     
+    @Override
     public SocketChannel getIOChannel() {
         return sc;
     }

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/URL.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/URL.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/URL.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/URL.java Thu Nov  5 01:22:13 2009
@@ -302,6 +302,7 @@
      *
      * @param obj The URL to compare against
      */
+    @Override
     public boolean equals(Object obj) {
 
         if (obj == null)
@@ -561,6 +562,7 @@
     /**
      * Return a string representation of this object.
      */
+    @Override
     public String toString() {
 
         StringBuilder sb = new StringBuilder("URL[");

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/jsse/JSSEImplementation.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/jsse/JSSEImplementation.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/jsse/JSSEImplementation.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/jsse/JSSEImplementation.java Thu Nov  5 01:22:13 2009
@@ -47,15 +47,18 @@
     }
 
 
+    @Override
     public String getImplementationName(){
       return "JSSE";
     }
       
+    @Override
     public ServerSocketFactory getServerSocketFactory()  {
         ServerSocketFactory ssf = factory.getSocketFactory();
         return ssf;
     } 
 
+    @Override
     public SSLSupport getSSLSupport(Socket s) {
         SSLSupport ssls = factory.getSSLSupport(s);
         return ssls;

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java Thu Nov  5 01:22:13 2009
@@ -115,6 +115,7 @@
     public JSSESocketFactory () {
     }
 
+    @Override
     public ServerSocket createSocket (int port)
         throws IOException
     {
@@ -124,6 +125,7 @@
         return socket;
     }
     
+    @Override
     public ServerSocket createSocket (int port, int backlog)
         throws IOException
     {
@@ -133,6 +135,7 @@
         return socket;
     }
     
+    @Override
     public ServerSocket createSocket (int port, int backlog,
                                       InetAddress ifAddress)
         throws IOException
@@ -144,6 +147,7 @@
         return socket;
     }
     
+    @Override
     public Socket acceptSocket(ServerSocket socket)
         throws IOException
     {
@@ -157,6 +161,7 @@
         return asock;
     }
 
+    @Override
     public void handshake(Socket sock) throws IOException {
         //we do getSession instead of startHandshake() so we can call this multiple times
     	SSLSession session = ((SSLSocket)sock).getSession();

Modified: tomcat/trunk/java/org/apache/tomcat/util/threads/TaskQueue.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/threads/TaskQueue.java?rev=832957&r1=832956&r2=832957&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/threads/TaskQueue.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/threads/TaskQueue.java Thu Nov  5 01:22:13 2009
@@ -58,6 +58,7 @@
         return super.offer(o,timeout,unit); //forces the item onto the queue, to be used if the task is rejected
     }
 
+    @Override
     public boolean offer(Runnable o) {
       //we can't do any checks
         if (parent==null) return super.offer(o);



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


Mime
View raw message