You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2014/07/28 16:04:58 UTC

[46/50] git commit: updated refs/heads/4.4 to d5220a8

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

(cherry picked from commit 610d6f0b993d7b1f1aae9b072af260fd151de4a0)


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

Branch: refs/heads/4.4
Commit: c72f55f9f35f3b1b2bff0d437497592f6d9f582a
Parents: d14d0d7
Author: Koushik Das <ko...@apache.org>
Authored: Thu Jul 10 12:10:46 2014 +0530
Committer: Daan Hoogland <da...@onecht.net>
Committed: Mon Jul 28 16:02:52 2014 +0200

----------------------------------------------------------------------
 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/c72f55f9/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;
     }