Fix some Lint issues
This commit is contained in:
parent
bcf6a7f630
commit
de70dec44a
5 changed files with 6 additions and 1 deletions
|
@ -51,7 +51,7 @@ public final class WaypointMatcherImpl implements WaypointMatcher {
|
|||
}
|
||||
|
||||
// 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);
|
||||
|
|
|
@ -271,6 +271,7 @@ public class BRouterService extends Service {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private void logBundle(Bundle params) {
|
||||
if (AppLogger.isLogging()) {
|
||||
for (String k : params.keySet()) {
|
||||
|
|
|
@ -36,6 +36,7 @@ public class BRouterWorker {
|
|||
public List<OsmNodeNamed> nogoPolygonsList;
|
||||
public String profileParams;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public String getTrackFromParams(Bundle params) {
|
||||
|
||||
int engineMode = 0;
|
||||
|
|
|
@ -224,6 +224,7 @@ public class CompactLongMap<V> {
|
|||
|
||||
|
||||
// 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;
|
||||
|
@ -243,6 +244,7 @@ public class CompactLongMap<V> {
|
|||
return false;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
protected void moveToFrozenArrays(long[] faid, List<V> flv) {
|
||||
for (int i = 1; i < MAXLISTS; i++) {
|
||||
pa[i] = 0;
|
||||
|
|
|
@ -19,6 +19,7 @@ public final class SortedHeap<V> {
|
|||
/**
|
||||
* @return the lowest key value, or null if none
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public V popLowestKeyValue() {
|
||||
SortedBin bin = firstNonEmpty;
|
||||
if (firstNonEmpty == null) {
|
||||
|
|
Loading…
Reference in a new issue