Open Nava2 opened 7 years ago
assert is widely considered bad. It corrupts the stack and does not behave "appropriately."
assert
All assert messages should be replaced with this or equivalent:
From:
assert module instanceof RegisterArray : "Passed non-RegisterArray to RegisterArray.copyDataTo()" ;
To:
checkArgument(module instanceof RegisterArray, "Passed non-RegisterArray to RegisterArray.copyDataTo()");
assert
is widely considered bad. It corrupts the stack and does not behave "appropriately."All
assert
messages should be replaced with this or equivalent:From:
To: