You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ko...@apache.org on 2014/07/10 09:04:52 UTC
git commit: updated refs/heads/master to 61fe959
Repository: cloudstack
Updated Branches:
refs/heads/master e07d0ddab -> 61fe959bb
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/master
Commit: 61fe959bb454279cc711a7c7fa5449c7f8881125
Parents: e07d0dd
Author: Koushik Das <ko...@apache.org>
Authored: Thu Jul 10 12:10:46 2014 +0530
Committer: Koushik Das <ko...@apache.org>
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;
}