Skip to content

Commit

Permalink
[java] Avoiding use of raw types
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed May 27, 2020
1 parent 6ff8fc0 commit f97ab90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/client/src/org/openqa/selenium/internal/Require.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public T equalTo(Object other) {
return arg;
}

public T instanceOf(Class cls) {
public T instanceOf(Class<?> cls) {
if (arg == null) {
throw new IllegalArgumentException(argName + " must be set");
}
Expand Down Expand Up @@ -249,7 +249,7 @@ public T nonNull(String message, Object... args) {
return state;
}

public T instanceOf(Class cls) {
public T instanceOf(Class<?> cls) {
if (state == null) {
throw new IllegalStateException(name + " must be set");
}
Expand Down

0 comments on commit f97ab90

Please sign in to comment.