* fix unintended Java 7 dependency
This commit is contained in:
parent
7dfcdbe35e
commit
563e279c48
|
@ -202,7 +202,7 @@ public class MediaDetection {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compare(TheTVDBSearchResult a, TheTVDBSearchResult b) {
|
public int compare(TheTVDBSearchResult a, TheTVDBSearchResult b) {
|
||||||
return Integer.compare(matchMap.get(b).length(), matchMap.get(a).length());
|
return Integer.valueOf(matchMap.get(b).length()).compareTo(Integer.valueOf(matchMap.get(a).length()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -235,7 +235,7 @@ public class MediaDetection {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compare(AnidbSearchResult a, AnidbSearchResult b) {
|
public int compare(AnidbSearchResult a, AnidbSearchResult b) {
|
||||||
return Integer.compare(matchMap.get(b).length(), matchMap.get(a).length());
|
return Integer.valueOf(matchMap.get(b).length()).compareTo(Integer.valueOf(matchMap.get(a).length()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -323,7 +323,7 @@ public class MediaDetection {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compare(Movie a, Movie b) {
|
public int compare(Movie a, Movie b) {
|
||||||
return Integer.compare(matchMap.get(b).length(), matchMap.get(a).length());
|
return Integer.valueOf(matchMap.get(b).length()).compareTo(Integer.valueOf(matchMap.get(a).length()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue