Skip to content

Commit c1eb57b

Browse files
committed
replace anonymous type with lambda
1 parent d0a07bd commit c1eb57b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

java/src/org/openqa/selenium/safari/AddHasDebugger.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ public Class<HasDebugger> getDescribedInterface() {
5555

5656
@Override
5757
public HasDebugger getImplementation(Capabilities capabilities, ExecuteMethod executeMethod) {
58-
return new HasDebugger() {
59-
@Override
60-
public void attachDebugger() {
61-
executeMethod.execute(ATTACH_DEBUGGER, null);
62-
}
63-
};
58+
return () -> executeMethod.execute(ATTACH_DEBUGGER, null);
6459
}
6560
}

0 commit comments

Comments
 (0)