Skip to content

Commit

Permalink
Merge pull request #651 from devemux86/lint
Browse files Browse the repository at this point in the history
Fix compile and Lint issues
  • Loading branch information
afischerdev committed Jan 15, 2024
2 parents a3ae1ce + de70dec commit 56ba451
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public WaypointMatcherImpl(List<MatchedWaypoint> waypoints, double maxDistance,
}

// sort result list
comparator = new Comparator<>() {
comparator = new Comparator<MatchedWaypoint>() {
@Override
public int compare(MatchedWaypoint mw1, MatchedWaypoint mw2) {
int cmpDist = Double.compare(mw1.radius, mw2.radius);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ private String checkForTestDummy(String baseDir) {
}
}

@SuppressWarnings("deprecation")
private void logBundle(Bundle params) {
if (AppLogger.isLogging()) {
for (String k : params.keySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class BRouterWorker {
public List<OsmNodeNamed> nogoPolygonsList;
public String profileParams;

@SuppressWarnings("deprecation")
public String getTrackFromParams(Bundle params) {

int engineMode = 0;
Expand Down
2 changes: 2 additions & 0 deletions brouter-util/src/main/java/btools/util/CompactLongMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ protected boolean contains(long id, boolean doPut) {


// does sorted array "a" contain "id" ?
@SuppressWarnings("unchecked")
private boolean contains(int idx, long id, boolean doPut) {
long[] a = al[idx];
int offset = a.length;
Expand All @@ -243,6 +244,7 @@ private boolean contains(int idx, long id, boolean doPut) {
return false;
}

@SuppressWarnings("unchecked")
protected void moveToFrozenArrays(long[] faid, List<V> flv) {
for (int i = 1; i < MAXLISTS; i++) {
pa[i] = 0;
Expand Down
1 change: 1 addition & 0 deletions brouter-util/src/main/java/btools/util/SortedHeap.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public SortedHeap() {
/**
* @return the lowest key value, or null if none
*/
@SuppressWarnings("unchecked")
public V popLowestKeyValue() {
SortedBin bin = firstNonEmpty;
if (firstNonEmpty == null) {
Expand Down

0 comments on commit 56ba451

Please sign in to comment.