[hornetq-commits] JBoss hornetq SVN: r12281 - branches/Branch_2_2_EAP/src/main/org/hornetq/jms/server/recovery.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Mar 9 16:09:18 EST 2012


Author: clebert.suconic at jboss.com
Date: 2012-03-09 16:09:17 -0500 (Fri, 09 Mar 2012)
New Revision: 12281

Modified:
   branches/Branch_2_2_EAP/src/main/org/hornetq/jms/server/recovery/HornetQResourceRecovery.java
Log:
format only

Modified: branches/Branch_2_2_EAP/src/main/org/hornetq/jms/server/recovery/HornetQResourceRecovery.java
===================================================================
--- branches/Branch_2_2_EAP/src/main/org/hornetq/jms/server/recovery/HornetQResourceRecovery.java	2012-03-09 21:07:12 UTC (rev 12280)
+++ branches/Branch_2_2_EAP/src/main/org/hornetq/jms/server/recovery/HornetQResourceRecovery.java	2012-03-09 21:09:17 UTC (rev 12281)
@@ -32,27 +32,27 @@
 public class HornetQResourceRecovery implements XAResourceRecovery
 {
    private final XARecoveryConfig config;
-   
+
    private final XAResource[] xaResources;
-   
+
    private int usage;
 
    public HornetQResourceRecovery(XARecoveryConfig config)
    {
       this.config = config;
-      this.xaResources =  new XAResource[]{new HornetQXAResourceWrapper(config)};
+      this.xaResources = new XAResource[] { new HornetQXAResourceWrapper(config) };
    }
 
    public XAResource[] getXAResources()
    {
       return xaResources;
    }
-   
+
    public XARecoveryConfig getConfig()
    {
       return config;
    }
-   
+
    /** we may have several connection factories referencing the same connection recovery entry.
     *  Because of that we need to make a count of the number of the instances that are referencing it,
     *  so we will remove it as soon as we are done */
@@ -60,7 +60,7 @@
    {
       return ++usage;
    }
-   
+
    public synchronized int decrementUsage()
    {
       return --usage;
@@ -69,12 +69,15 @@
    @Override
    public boolean equals(Object o)
    {
-      if (this == o) return true;
-      if (o == null || getClass() != o.getClass()) return false;
+      if (this == o)
+         return true;
+      if (o == null || getClass() != o.getClass())
+         return false;
 
-      HornetQResourceRecovery that = (HornetQResourceRecovery) o;
+      HornetQResourceRecovery that = (HornetQResourceRecovery)o;
 
-      if (config != null ? !config.equals(that.config) : that.config != null) return false;
+      if (config != null ? !config.equals(that.config) : that.config != null)
+         return false;
 
       return true;
    }



More information about the hornetq-commits mailing list