mirror of https://github.com/apache/cloudstack.git
Removed invalid assertions from code. Now the MS can be run with assertions enabled (using -ea flag)
(cherry picked from commit 610d6f0b99)
This commit is contained in:
parent
d14d0d7c92
commit
c72f55f9f3
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue