mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
Some changes that are possible in Java language level 7 and 8. (#1007)
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user