activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1241039 - in /activemq/activemq-apollo/trunk/apollo-dto/src/main: java/org/apache/activemq/apollo/dto/DetectDTO.java resources/org/apache/activemq/apollo/dto/jaxb.index
Date Mon, 06 Feb 2012 15:14:29 GMT
Author: chirino
Date: Mon Feb  6 15:14:29 2012
New Revision: 1241039

URL: http://svn.apache.org/viewvc?rev=1241039&view=rev
Log:
Adding the new DetectDTO to the jaxb index so it can be found by Jaxb and also add a hash
code and equals impl so that config changes in it can be detected.

Modified:
    activemq/activemq-apollo/trunk/apollo-dto/src/main/java/org/apache/activemq/apollo/dto/DetectDTO.java
    activemq/activemq-apollo/trunk/apollo-dto/src/main/resources/org/apache/activemq/apollo/dto/jaxb.index

Modified: activemq/activemq-apollo/trunk/apollo-dto/src/main/java/org/apache/activemq/apollo/dto/DetectDTO.java
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-dto/src/main/java/org/apache/activemq/apollo/dto/DetectDTO.java?rev=1241039&r1=1241038&r2=1241039&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-dto/src/main/java/org/apache/activemq/apollo/dto/DetectDTO.java
(original)
+++ activemq/activemq-apollo/trunk/apollo-dto/src/main/java/org/apache/activemq/apollo/dto/DetectDTO.java
Mon Feb  6 15:14:29 2012
@@ -36,4 +36,23 @@ public class DetectDTO extends ProtocolD
     @XmlAttribute(name="timeout")
     public Long timeout;
 
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (o == null || getClass() != o.getClass()) return false;
+        if (!super.equals(o)) return false;
+
+        DetectDTO detectDTO = (DetectDTO) o;
+
+        if (timeout != null ? !timeout.equals(detectDTO.timeout) : detectDTO.timeout != null)
return false;
+
+        return true;
+    }
+
+    @Override
+    public int hashCode() {
+        int result = super.hashCode();
+        result = 31 * result + (timeout != null ? timeout.hashCode() : 0);
+        return result;
+    }
 }

Modified: activemq/activemq-apollo/trunk/apollo-dto/src/main/resources/org/apache/activemq/apollo/dto/jaxb.index
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-dto/src/main/resources/org/apache/activemq/apollo/dto/jaxb.index?rev=1241039&r1=1241038&r2=1241039&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-dto/src/main/resources/org/apache/activemq/apollo/dto/jaxb.index
(original)
+++ activemq/activemq-apollo/trunk/apollo-dto/src/main/resources/org/apache/activemq/apollo/dto/jaxb.index
Mon Feb  6 15:14:29 2012
@@ -29,6 +29,7 @@ CustomServiceDTO
 DataPageDTO
 DestMetricsDTO
 DestinationDTO
+DetectDTO
 DurableSubscriptionDTO
 DurableSubscriptionDestinationDTO
 EntryStatusDTO



Mime
View raw message