cfr icon indicating copy to clipboard operation
cfr copied to clipboard

Avoid one line for loops

Open GraxCode opened this issue 4 years ago • 0 comments

CFR version

7b979937facb860cf1fdc9d21d1c1e2edcf3d9d2

Description

For loops shouldn't be decompiled to one liners to improve readability.

Example

 for (int i = 1; i < ccst.length; sdev += ((double)ccst[i] - mean) * ((double)ccst[i] - mean), ++i) {
}

should be avoided, instead do:

        for (int i = 1; i < ccst.length; ++i) {
            sdev += (ccst[i] - mean) * (ccst[i] - mean);
        }

GraxCode avatar Jun 18 '20 20:06 GraxCode