tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
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 GMT
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


Mime
View raw message