Skip to content

Commit bd13970

Browse files
committed
[java] Removing unnecessary type casts
1 parent 8ab7f73 commit bd13970

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

java/client/src/org/openqa/selenium/devtools/v84/V84Events.java

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ protected ConsoleEvent toConsoleEvent(ConsoleAPICalled event) {
7070
.map(obj -> new RemoteObject(
7171
obj.getType().toString(),
7272
obj.getValue().orElse(null)))
73-
.map(obj -> (Object) obj)
7473
.collect(ImmutableList.toImmutableList());
7574

7675
return new ConsoleEvent(

java/client/src/org/openqa/selenium/devtools/v85/V85Events.java

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ protected ConsoleEvent toConsoleEvent(ConsoleAPICalled event) {
7070
.map(obj -> new RemoteObject(
7171
obj.getType().toString(),
7272
obj.getValue().orElse(null)))
73-
.map(obj -> (Object) obj)
7473
.collect(ImmutableList.toImmutableList());
7574

7675
return new ConsoleEvent(

java/client/src/org/openqa/selenium/devtools/v86/V86Events.java

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ protected ConsoleEvent toConsoleEvent(ConsoleAPICalled event) {
7171
.map(obj -> new RemoteObject(
7272
obj.getType().toString(),
7373
obj.getValue().orElse(null)))
74-
.map(obj -> (Object) obj)
7574
.collect(ImmutableList.toImmutableList());
7675

7776
return new ConsoleEvent(

java/client/src/org/openqa/selenium/devtools/v87/V87Events.java

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ protected ConsoleEvent toConsoleEvent(ConsoleAPICalled event) {
7070
.map(obj -> new RemoteObject(
7171
obj.getType().toString(),
7272
obj.getValue().orElse(null)))
73-
.map(obj -> (Object) obj)
7473
.collect(ImmutableList.toImmutableList());
7574

7675
return new ConsoleEvent(

0 commit comments

Comments
 (0)