Skip to content

Commit 1dc5971

Browse files
committed
replaced anonymous type with lambda
1 parent c1eb57b commit 1dc5971

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

java/src/org/openqa/selenium/chromium/AddHasLaunchApp.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,9 @@ public Class<HasLaunchApp> getDescribedInterface() {
5757

5858
@Override
5959
public HasLaunchApp getImplementation(Capabilities capabilities, ExecuteMethod executeMethod) {
60-
return new HasLaunchApp() {
61-
@Override
62-
public void launchApp(String id) {
63-
Require.nonNull("id of Chromium App", id);
64-
65-
executeMethod.execute(LAUNCH_APP, Map.of("id", id));
66-
}
60+
return id -> {
61+
Require.nonNull("id of Chromium App", id);
62+
executeMethod.execute(LAUNCH_APP, Map.of("id", id));
6763
};
6864
}
6965
}

0 commit comments

Comments
 (0)