ReturnCountExtendedCheck takes into account 'returns' in lambdas #463

Closed
baratali opened this Issue Jul 15, 2016 · 1 comment

Projects

None yet

2 participants

@baratali
Contributor
baratali commented Jul 15, 2016 edited

com.github.sevntu.checkstyle.checks.coding.ReturnCountExtendedCheck: Return count for 'load' method is 2 (max allowed is 1).

// code is not compilable
private static Integer load() {
    query((rs, rownum) -> {
        System.out.println();
        return p;
    });
    return a;
}

Similar issue for ReturnCountCheck: checkstyle/checkstyle#1068

@rnveach rnveach added a commit to rnveach/sevntu.checkstyle that referenced this issue Dec 3, 2016
@rnveach rnveach Issue #463: extended ReturnCountExtendedCheck to accept lambdas 2cae467
@rnveach rnveach added a commit to rnveach/sevntu.checkstyle that referenced this issue Dec 4, 2016
@rnveach rnveach Issue #463: extended ReturnCountExtendedCheck to accept lambdas 0917f66
@rnveach rnveach added a commit to rnveach/sevntu.checkstyle that referenced this issue Dec 4, 2016
@rnveach rnveach Issue #463: extended ReturnCountExtendedCheck to accept lambdas 496a960
@rnveach rnveach added a commit to rnveach/sevntu.checkstyle that referenced this issue Dec 4, 2016
@rnveach rnveach Issue #463: extended ReturnCountExtendedCheck to accept lambdas 75df30c
@rnveach rnveach added a commit to rnveach/sevntu.checkstyle that referenced this issue Dec 5, 2016
@rnveach rnveach Issue #463: extended ReturnCountExtendedCheck to accept lambdas 768976a
@romani
Member
romani commented Dec 5, 2016

Fix is merged

@romani romani closed this Dec 5, 2016
@romani romani added this to the 1.23 milestone Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment