From c72f55f9f35f3b1b2bff0d437497592f6d9f582a Mon Sep 17 00:00:00 2001 From: Koushik Das Date: Thu, 10 Jul 2014 12:10:46 +0530 Subject: [PATCH] Removed invalid assertions from code. Now the MS can be run with assertions enabled (using -ea flag) (cherry picked from commit 610d6f0b993d7b1f1aae9b072af260fd151de4a0) --- framework/db/src/com/cloud/utils/db/TransactionLegacy.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/framework/db/src/com/cloud/utils/db/TransactionLegacy.java b/framework/db/src/com/cloud/utils/db/TransactionLegacy.java index aedf93982b7..3e14a043bb1 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; }