From de2cbf5ea550370c27a48b4a56c28b1977b73d9b Mon Sep 17 00:00:00 2001 From: Nadya Zabrodina Date: Wed, 8 Jun 2016 17:09:24 +0300 Subject: [PATCH] [hg]: cleanUp --- .../src/org/zmlx/hg4idea/provider/HgChangeProvider.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/provider/HgChangeProvider.java b/plugins/hg4idea/src/org/zmlx/hg4idea/provider/HgChangeProvider.java index a766786658e2..8e8c06cbb4bb 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/provider/HgChangeProvider.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/provider/HgChangeProvider.java @@ -20,7 +20,6 @@ import com.intellij.openapi.vcs.changes.*; import com.intellij.openapi.vfs.VfsUtil; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.ui.JBColor; -import com.intellij.util.Function; import com.intellij.util.containers.ContainerUtil; import com.intellij.vcsUtil.VcsUtil; import org.jetbrains.annotations.NotNull; @@ -92,12 +91,7 @@ public class HgChangeProvider implements ChangeProvider { hgChanges.addAll(new HgStatusCommand.Builder(true).build(myProject).executeInCurrentThread(repo, entry.getValue())); final HgRepository hgRepo = HgUtil.getRepositoryForFile(myProject, repo); if (hgRepo != null && hgRepo.hasSubrepos()) { - hgChanges.addAll(ContainerUtil.mapNotNull(hgRepo.getSubrepos(), new Function() { - @Override - public HgChange fun(HgNameWithHashInfo info) { - return findChange(hgRepo, info); - } - })); + hgChanges.addAll(ContainerUtil.mapNotNull(hgRepo.getSubrepos(), info -> findChange(hgRepo, info))); } sendChanges(builder, hgChanges, list, workingRevision, parentRevision);