Enable PMD rule UnnecessaryReturn and fix violations

This commit is contained in:
Manuel Fuhr 2022-11-13 15:31:41 +01:00
parent 1bff48b649
commit 3b77f93c00
4 changed files with 0 additions and 4 deletions

View file

@ -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;
} }
/** /**

View file

@ -543,7 +543,6 @@ public class SuspectManager extends Thread {
} }
bw.write("</body></html>\n"); bw.write("</body></html>\n");
bw.flush(); bw.flush();
return;
} }

View file

@ -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() {

View file

@ -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" />