Some changes that are possible in Java language level 7 and 8. (#1007)

This commit is contained in:
Koen De Groote authored and Rob Bygrave committed 2017-04-22 15:43:56 +12:00
1 parent bdd7884f42
commit 8432f7b0d5
7 files changed
+12 -12

No files matched your search

@@ -23,19 +23,19 @@ public class SortAutoTuneDocument {
ProfileDiff profileDiff = document.getProfileDiff();
if (profileDiff != null) {
Collections.sort(profileDiff.getOrigin(), NAME_KEY_SORT);
profileDiff.getOrigin().sort(NAME_KEY_SORT);
}
ProfileNew profileNew = document.getProfileNew();
if (profileNew != null) {
Collections.sort(profileNew.getOrigin(), NAME_KEY_SORT);
profileNew.getOrigin().sort(NAME_KEY_SORT);
}
ProfileEmpty profileEmpty = document.getProfileEmpty();
if (profileEmpty != null) {
Collections.sort(profileEmpty.getOrigin(), KEY_SORT);
profileEmpty.getOrigin().sort(KEY_SORT);
}
List<Origin> origins = document.getOrigin();
if (!origins.isEmpty()) {
Collections.sort(origins, NAME_KEY_SORT);
origins.sort(NAME_KEY_SORT);
}
}