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/61fe959b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/61fe959b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/61fe959b

Branch: refs/heads/vpc-toolkit-hugo
Commit: 61fe959bb454279cc711a7c7fa5449c7f8881125
Parents: e07d0dd
Author: Koushik Das <[email protected]>
Authored: Thu Jul 10 12:10:46 2014 +0530
Committer: Koushik Das <[email protected]>
Committed: Thu Jul 10 12:18:29 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/61fe959b/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 7cc6343..7784d2f 100755
--- a/framework/db/src/com/cloud/utils/db/TransactionLegacy.java
+++ b/framework/db/src/com/cloud/utils/db/TransactionLegacy.java
@@ -113,9 +113,6 @@ public class TransactionLegacy implements Closeable {
         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