Skip to content

Commit 34d6047

Browse files
committed
Java 8 cleanups
1 parent 0b0cfa0 commit 34d6047

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

java/server/src/org/openqa/selenium/server/htmlrunner/ReflectivelyDiscoveredSteps.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import com.google.common.base.Supplier;
2222
import com.google.common.base.Suppliers;
2323
import com.google.common.collect.ImmutableMap;
24-
import com.google.common.primitives.Booleans;
2524

2625
import com.thoughtworks.selenium.SeleneseTestBase;
2726
import com.thoughtworks.selenium.Selenium;
@@ -41,7 +40,7 @@ class ReflectivelyDiscoveredSteps implements Supplier<ImmutableMap<String, CoreS
4140
private static final Logger LOG = Logger.getLogger("Selenium Core Step");
4241

4342
private static Supplier<ImmutableMap<String, CoreStepFactory>> REFLECTIVE_STEPS =
44-
Suppliers.memoize(() -> discover());
43+
Suppliers.memoize(ReflectivelyDiscoveredSteps::discover);
4544

4645
public ImmutableMap<String, CoreStepFactory> get() {
4746
return REFLECTIVE_STEPS.get();
@@ -91,7 +90,7 @@ private static ImmutableMap<String, CoreStepFactory> discover() {
9190
isAccessor = false;
9291
}
9392

94-
if (shortName != null && isAccessor) {
93+
if (shortName != null) {
9594
String negatedName = negateName(shortName);
9695

9796
factories.put("assert" + shortName, ((locator, value) -> (selenium, state) -> {

0 commit comments

Comments
 (0)