* fix unintended Java 7 dependency

This commit is contained in:
Reinhard Pointner 2012-02-20 09:37:18 +00:00
parent 7dfcdbe35e
commit 563e279c48
1 changed files with 3 additions and 3 deletions

View File

@ -202,7 +202,7 @@ public class MediaDetection {
@Override
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
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
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()));
}
});