Enable PMD rule PrimitiveWrapperInstantiation and fix violations
This commit is contained in:
parent
7a6d3bd9d9
commit
28f205c1ad
12 changed files with 20 additions and 21 deletions
|
|
@ -107,7 +107,7 @@ public class BRouterWorker {
|
|||
String straight = params.getString("straight");
|
||||
String[] sa = straight.split(",");
|
||||
for (int i = 0; i < sa.length; i++) {
|
||||
int v = Integer.valueOf(sa[i]);
|
||||
int v = Integer.parseInt(sa[i]);
|
||||
if (waypoints.size() > v) waypoints.get(v).direct = true;
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue