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
|
|
@ -130,7 +130,7 @@ public class RelationMerger extends MapCreatorBase {
|
|||
if (routeset.contains(data.wid)) {
|
||||
int sepIdx = key.lastIndexOf('_');
|
||||
String tagname = key.substring(0, sepIdx);
|
||||
int val = Integer.valueOf(key.substring(sepIdx + 1));
|
||||
int val = Integer.parseInt(key.substring(sepIdx + 1));
|
||||
expctxReport.addSmallestLookupValue(tagname, val);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -480,7 +480,7 @@ public class WayLinker extends MapCreatorBase implements Runnable {
|
|||
if (mc.expandId(shrinkid) != longId) {
|
||||
throw new IllegalArgumentException("inconstistent shrinking: " + longId);
|
||||
}
|
||||
sortedList.put(Integer.valueOf(shrinkid), n);
|
||||
sortedList.put(shrinkid, n);
|
||||
}
|
||||
|
||||
for (OsmNodeP n : sortedList.values()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue