fujaba/NetworkParser

View on GitHub
src/main/java/de/uniks/networkparser/graph/FeatureSet.java

Summary

Maintainability
A
0 mins
Test Coverage

Avoid using a branching statement as the last in a loop.
Open

            return feature;

AvoidBranchingStatementAsLastInLoop

Since: PMD 5.0

Priority: Medium High

Categories: Style

Remediation Points: 50000

Using a branching statement as the last part of a loop may be a bug, and/or is confusing. Ensure that the usage is not a bug, or consider using another approach.

Example:

// unusual use of branching statement in a loop
for (int i = 0; i < 10; i++) {
 if (i*i <= 25) {
 continue;
 }
 break;
}

// this makes more sense...
for (int i = 0; i < 10; i++) {
 if (i*i > 25) {
 break;
 }
}

There are no issues that match your filters.

Category
Status