Repository: cloudstack
Updated Branches:
  refs/heads/4.4-forward 252e58381 -> 610d6f0b9


Removed invalid assertions from code. Now the MS can be run with assertions 
enabled (using -ea flag)


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/610d6f0b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/610d6f0b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/610d6f0b

Branch: refs/heads/4.4-forward
Commit: 610d6f0b993d7b1f1aae9b072af260fd151de4a0
Parents: 252e583
Author: Koushik Das <kous...@apache.org>
Authored: Thu Jul 10 12:10:46 2014 +0530
Committer: Koushik Das <kous...@apache.org>
Committed: Thu Jul 10 12:10:46 2014 +0530

----------------------------------------------------------------------
 framework/db/src/com/cloud/utils/db/TransactionLegacy.java | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/610d6f0b/framework/db/src/com/cloud/utils/db/TransactionLegacy.java
----------------------------------------------------------------------
diff --git a/framework/db/src/com/cloud/utils/db/TransactionLegacy.java 
b/framework/db/src/com/cloud/utils/db/TransactionLegacy.java
index aedf939..3e14a04 100755
--- a/framework/db/src/com/cloud/utils/db/TransactionLegacy.java
+++ b/framework/db/src/com/cloud/utils/db/TransactionLegacy.java
@@ -112,9 +112,6 @@ public class TransactionLegacy {
         TransactionLegacy txn = tls.get();
         if (check) {
             assert txn != null : "No Transaction on stack.  Did you mark the 
method with @DB?";
-
-            assert checkAnnotation(4, txn) : "Did you even read the guide to 
use Transaction...IOW...other people's code? Try method can't be private.  What 
about @DB? hmmm... could that be it? " +
-                txn;
         }
         return txn;
     }

Reply via email to