mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git: simplify: use ContainerUtil instead of Collections2
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package git4idea.branch;
|
||||
|
||||
import com.google.common.collect.Collections2;
|
||||
import com.intellij.dvcs.DvcsUtil;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -212,10 +211,7 @@ public class GitBranchUtil {
|
||||
*/
|
||||
@NotNull
|
||||
public static Collection<String> getBranchNamesWithoutRemoteHead(@NotNull Collection<GitRemoteBranch> remoteBranches) {
|
||||
return Collections2.filter(convertBranchesToNames(remoteBranches), input -> {
|
||||
assert input != null;
|
||||
return !input.equals("HEAD");
|
||||
});
|
||||
return ContainerUtil.filter(convertBranchesToNames(remoteBranches), input -> !input.equals("HEAD"));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user