[infinispan-commits] Infinispan SVN: r767 - trunk/core/src/main/java/org/infinispan/interceptors.

infinispan-commits at lists.jboss.org infinispan-commits at lists.jboss.org
Thu Sep 3 05:23:22 EDT 2009


Author: mircea.markus
Date: 2009-09-03 05:23:22 -0400 (Thu, 03 Sep 2009)
New Revision: 767

Modified:
   trunk/core/src/main/java/org/infinispan/interceptors/DeadlockDetectingInterceptor.java
Log:
findbugs:
  Load of known null value
The variable referenced at this point is known to be null due to an earlier check against null. Although this is valid, it might be a mistake (perhaps you intended to refer to a different variable, or perhaps the earlier check to see if the variable is null should have been a check to see if it was nonnull).

Modified: trunk/core/src/main/java/org/infinispan/interceptors/DeadlockDetectingInterceptor.java
===================================================================
--- trunk/core/src/main/java/org/infinispan/interceptors/DeadlockDetectingInterceptor.java	2009-09-03 09:21:58 UTC (rev 766)
+++ trunk/core/src/main/java/org/infinispan/interceptors/DeadlockDetectingInterceptor.java	2009-09-03 09:23:22 UTC (rev 767)
@@ -73,7 +73,7 @@
                   log.trace("Marking the transaction for rollback! : " + transaction);
                if (transaction == null) {
                   throw new IllegalStateException("We're running in a local transaction, there MUST be one " +
-                        "associated witht the local thread but none found! " + transaction);
+                        "associated witht the local thread but none found! (null)");
                }
                transaction.setRollbackOnly();
                txTable.removeLocalTransaction(transaction);



More information about the infinispan-commits mailing list