From ba6a8dc722ea4e21894118a2da66e8e32ddda8ba Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: Sun, 28 Aug 2022 11:52:35 +0200 Subject: [PATCH] 136: completed PitOptions Task-Url: https://github.com/pitest/pitclipse/issues/136 --- .../src/org/pitest/pitclipse/runner/PitOptions.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bundles/org.pitest.pitclipse.runner/src/org/pitest/pitclipse/runner/PitOptions.java b/bundles/org.pitest.pitclipse.runner/src/org/pitest/pitclipse/runner/PitOptions.java index d8c65db3..16a107d6 100644 --- a/bundles/org.pitest.pitclipse.runner/src/org/pitest/pitclipse/runner/PitOptions.java +++ b/bundles/org.pitest.pitclipse.runner/src/org/pitest/pitclipse/runner/PitOptions.java @@ -16,7 +16,6 @@ package org.pitest.pitclipse.runner; -import static com.google.common.collect.ImmutableList.copyOf; import static org.pitest.pitclipse.runner.config.PitConfiguration.DEFAULT_AVOID_CALLS_TO_LIST; import static org.pitest.pitclipse.runner.config.PitConfiguration.DEFAULT_MUTATORS; import static org.pitest.pitclipse.runner.util.PitFileUtils.createParentDirs; @@ -30,8 +29,7 @@ import java.util.Collections; import java.util.List; -import com.google.common.base.Splitter; -import com.google.common.collect.ImmutableList; +import org.pitest.pitclipse.runner.util.PitUtils; /** *

Options used to parameterize a PIT analysis.

@@ -104,7 +102,7 @@ public static final class PitOptionsBuilder { private File historyLocation = null; private List excludedClasses = Collections.emptyList(); private List excludedMethods = Collections.emptyList(); - private List avoidCallsTo = copyOf(split(DEFAULT_AVOID_CALLS_TO_LIST)); + private List avoidCallsTo = split(DEFAULT_AVOID_CALLS_TO_LIST); private String mutators = DEFAULT_MUTATORS; private int timeout = 3000; private BigDecimal timeoutFactor = BigDecimal.valueOf(1.25); @@ -253,7 +251,7 @@ public PitOptionsBuilder withUseJUnit5(boolean useJUnit5) { } private static List split(String toSplit) { - return ImmutableList.copyOf(Splitter.on(',').trimResults().omitEmptyStrings().split(toSplit)); + return PitUtils.splitBasedOnComma(toSplit); } private static File copyOfFile(File sourceDir) {