Code inspection errors
Issue #818
resolved
Hi Scott,
After installing the latest update this morning, my APEX class still has a couple of code inspection errors so I wanted to open up another ticket to toss them onto your radar.
Comments (6)
-
repo owner -
repo owner Michael, can you confirm that the data type of
wrap.Mwdc
in the provided example isDouble
? -
repo owner Okay, this simple code sample successfully reproduces both issues:
Double wrapMwdc = 4; Double foo = ((wrapMwdc / 40) + 0.5).setScale(2); Double laq; laq = laq + (laq / 36.5).setScale(0, RoundingMode.UP);
Should be trivial to address these. Sorry they weren't fixed in today's build!
-
repo owner Aha. My conversion rule logic assumed that it was Integer < Long < Decimal < Double, but the last two are swapped in Apex:
Will be fixed in the next build.
-
reporter Awesome thanks so much Scott! :)
-
repo owner - changed status to resolved
Delivered in 2.0.0.2. Please reopen if you still see these types of issues after updating.
- Log in to comment
Yes, please do. I'm hoping to keep chiseling away at these over the next few days until the signal-to-noise ratio is proper. I did add another large set of open source Apex to my regression test harness, but not surprising that there are still some unaddressed issues. Thanks!