mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] minor: use method references
This commit is contained in:
@@ -41,12 +41,12 @@ public class VcsLogUtil {
|
||||
|
||||
@NotNull
|
||||
public static Map<VirtualFile, Set<VcsRef>> groupRefsByRoot(@NotNull Collection<VcsRef> refs) {
|
||||
return groupByRoot(refs, ref -> ref.getRoot());
|
||||
return groupByRoot(refs, VcsRef::getRoot);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static <T extends VcsShortCommitDetails> Map<VirtualFile, Set<T>> groupByRoot(@NotNull Collection<T> commits) {
|
||||
return groupByRoot(commits, commit -> commit.getRoot());
|
||||
return groupByRoot(commits, VcsShortCommitDetails::getRoot);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user