Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 77039 invoked from network); 9 Dec 2010 23:48:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Dec 2010 23:48:19 -0000 Received: (qmail 36855 invoked by uid 500); 9 Dec 2010 23:48:18 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 36767 invoked by uid 500); 9 Dec 2010 23:48:18 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 36758 invoked by uid 99); 9 Dec 2010 23:48:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 23:48:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 23:48:18 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 31F1523889DA; Thu, 9 Dec 2010 23:47:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1044171 - in /tomcat/trunk/java/org/apache/catalina: ha/deploy/UndeployMessage.java tribes/ByteMessage.java Date: Thu, 09 Dec 2010 23:47:58 -0000 To: dev@tomcat.apache.org From: markt@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101209234758.31F1523889DA@eris.apache.org> Author: markt Date: Thu Dec 9 23:47:57 2010 New Revision: 1044171 URL: http://svn.apache.org/viewvc?rev=1044171&view=rev Log: Remove redundant interface definitions and fix other warnings (missing @Overrides) in same files Modified: tomcat/trunk/java/org/apache/catalina/ha/deploy/UndeployMessage.java tomcat/trunk/java/org/apache/catalina/tribes/ByteMessage.java Modified: tomcat/trunk/java/org/apache/catalina/ha/deploy/UndeployMessage.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/deploy/UndeployMessage.java?rev=1044171&r1=1044170&r2=1044171&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/ha/deploy/UndeployMessage.java (original) +++ tomcat/trunk/java/org/apache/catalina/ha/deploy/UndeployMessage.java Thu Dec 9 23:47:57 2010 @@ -17,11 +17,10 @@ package org.apache.catalina.ha.deploy; -import java.io.Serializable; - import org.apache.catalina.ha.ClusterMessage; import org.apache.catalina.tribes.Member; -public class UndeployMessage implements ClusterMessage,Serializable { + +public class UndeployMessage implements ClusterMessage { private static final long serialVersionUID = 1L; private Member address; @@ -46,26 +45,32 @@ public class UndeployMessage implements this.contextPath = contextPath; } + @Override public Member getAddress() { return address; } + @Override public void setAddress(Member address) { this.address = address; } + @Override public long getTimestamp() { return timestamp; } + @Override public void setTimestamp(long timestamp) { this.timestamp = timestamp; } + @Override public String getUniqueId() { return uniqueId; } + @Override public void setUniqueId(String uniqueId) { this.uniqueId = uniqueId; } Modified: tomcat/trunk/java/org/apache/catalina/tribes/ByteMessage.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/ByteMessage.java?rev=1044171&r1=1044170&r2=1044171&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/tribes/ByteMessage.java (original) +++ tomcat/trunk/java/org/apache/catalina/tribes/ByteMessage.java Thu Dec 9 23:47:57 2010 @@ -20,7 +20,6 @@ import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import java.io.Serializable; /** * A byte message is not serialized and deserialized by the channel @@ -40,7 +39,7 @@ import java.io.Serializable; * @version $Id$ */ -public class ByteMessage implements Serializable, Externalizable { +public class ByteMessage implements Externalizable { /** * Storage for the message to be sent */ @@ -83,6 +82,7 @@ public class ByteMessage implements Seri * @param in ObjectInput * @throws IOException */ + @Override public void readExternal(ObjectInput in ) throws IOException { int length = in.readInt(); message = new byte[length]; @@ -94,6 +94,7 @@ public class ByteMessage implements Seri * @param out ObjectOutput * @throws IOException */ + @Override public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(message!=null?message.length:0); if ( message!=null ) out.write(message,0,message.length); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org