From 086665044fe3a6f05b9a7c0301def2df87053f09 Mon Sep 17 00:00:00 2001 From: Donat Csikos Date: Mon, 22 Jul 2024 18:00:45 +0200 Subject: [PATCH] Minor cleanup --- .../buildship/ui/internal/marker/GradleMarkerPropertyPage.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/org.eclipse.buildship.ui/src/main/java/org/eclipse/buildship/ui/internal/marker/GradleMarkerPropertyPage.java b/org.eclipse.buildship.ui/src/main/java/org/eclipse/buildship/ui/internal/marker/GradleMarkerPropertyPage.java index 68b285490..98f1ee149 100644 --- a/org.eclipse.buildship.ui/src/main/java/org/eclipse/buildship/ui/internal/marker/GradleMarkerPropertyPage.java +++ b/org.eclipse.buildship.ui/src/main/java/org/eclipse/buildship/ui/internal/marker/GradleMarkerPropertyPage.java @@ -12,7 +12,6 @@ import java.net.URL; import com.google.common.base.Splitter; -import com.google.common.collect.Lists; import org.eclipse.core.resources.IMarker; import org.eclipse.jface.dialogs.Dialog; @@ -174,6 +173,6 @@ private static String idDisplayName(String displayName, String fqid) { } public static int countLines(String str) { - return Lists.newArrayList(Splitter.on(System.lineSeparator()).split(str)).size(); + return Splitter.on(System.lineSeparator()).splitToList(str).size(); } }