Enable PMD rule UnnecessaryReturn and fix violations
This commit is contained in:
parent
1bff48b649
commit
3b77f93c00
4 changed files with 0 additions and 4 deletions
|
@ -132,7 +132,6 @@ public class OsmNogoPolygon extends OsmNodeNamed {
|
||||||
ilon = cx;
|
ilon = cx;
|
||||||
ilat = cy;
|
ilat = cy;
|
||||||
radius = rad * 1.001 + 1.0; // ensure the outside-of-enclosing-circle test in RoutingContext.calcDistance() is not passed by segments ending very close to the radius due to limited numerical precision
|
radius = rad * 1.001 + 1.0; // ensure the outside-of-enclosing-circle test in RoutingContext.calcDistance() is not passed by segments ending very close to the radius due to limited numerical precision
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -543,7 +543,6 @@ public class SuspectManager extends Thread {
|
||||||
}
|
}
|
||||||
bw.write("</body></html>\n");
|
bw.write("</body></html>\n");
|
||||||
bw.flush();
|
bw.flush();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,6 @@ public class ByteDataWriter extends ByteDataReader {
|
||||||
ab[aboffset++] = (byte) (i7 | 0x80);
|
ab[aboffset++] = (byte) (i7 | 0x80);
|
||||||
|
|
||||||
ab[aboffset++] = (byte) (v);
|
ab[aboffset++] = (byte) (v);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int size() {
|
public int size() {
|
||||||
|
|
|
@ -39,7 +39,6 @@
|
||||||
<exclude name="UncommentedEmptyMethodBody" />
|
<exclude name="UncommentedEmptyMethodBody" />
|
||||||
<exclude name="UnnecessaryFullyQualifiedName" />
|
<exclude name="UnnecessaryFullyQualifiedName" />
|
||||||
<exclude name="UnnecessaryModifier" />
|
<exclude name="UnnecessaryModifier" />
|
||||||
<exclude name="UnnecessaryReturn" />
|
|
||||||
<exclude name="UnusedFormalParameter" />
|
<exclude name="UnusedFormalParameter" />
|
||||||
<exclude name="UnusedLocalVariable" />
|
<exclude name="UnusedLocalVariable" />
|
||||||
<exclude name="UnusedPrivateField" />
|
<exclude name="UnusedPrivateField" />
|
||||||
|
|
Loading…
Reference in a new issue