1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 05:48:01 -05:00

* fix unintended Java 7 dependency

This commit is contained in:
Reinhard Pointner 2012-02-20 09:37:18 +00:00
parent 7dfcdbe35e
commit 563e279c48

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()));
}
});