Skip to content

Commit 0338628

Browse files
committed
[java] Adding @SuppressWarnings({"rawtypes", "RedundantSuppression"}) to remove warning from AutoService using raw types and generics.
1 parent 641bc29 commit 0338628

File tree

7 files changed

+7
-13
lines changed

7 files changed

+7
-13
lines changed

java/src/org/openqa/selenium/chrome/AddHasCasting.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.openqa.selenium.remote.CommandInfo;
3030
import org.openqa.selenium.remote.http.HttpMethod;
3131

32+
@SuppressWarnings({"rawtypes", "RedundantSuppression"})
3233
@AutoService({AdditionalHttpCommands.class, AugmenterProvider.class})
3334
public class AddHasCasting extends org.openqa.selenium.chromium.AddHasCasting {
3435

java/src/org/openqa/selenium/chrome/AddHasCdp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.openqa.selenium.remote.CommandInfo;
3030
import org.openqa.selenium.remote.http.HttpMethod;
3131

32+
@SuppressWarnings({"rawtypes", "RedundantSuppression"})
3233
@AutoService({AdditionalHttpCommands.class, AugmenterProvider.class})
3334
public class AddHasCdp extends org.openqa.selenium.chromium.AddHasCdp {
3435

java/src/org/openqa/selenium/chrome/ChromeDriverService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ public static ChromeDriverService createDefaultService() {
157157
}
158158

159159
/** Builder used to configure new {@link ChromeDriverService} instances. */
160+
@SuppressWarnings({"rawtypes", "RedundantSuppression"})
160161
@AutoService(DriverService.Builder.class)
161162
public static class Builder
162163
extends DriverService.Builder<ChromeDriverService, ChromeDriverService.Builder> {

java/src/org/openqa/selenium/edge/AddHasCasting.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.openqa.selenium.remote.CommandInfo;
3030
import org.openqa.selenium.remote.http.HttpMethod;
3131

32+
@SuppressWarnings({"rawtypes", "RedundantSuppression"})
3233
@AutoService({AdditionalHttpCommands.class, AugmenterProvider.class})
3334
public class AddHasCasting extends org.openqa.selenium.chromium.AddHasCasting {
3435

java/src/org/openqa/selenium/edge/AddHasCdp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.openqa.selenium.remote.CommandInfo;
3030
import org.openqa.selenium.remote.http.HttpMethod;
3131

32+
@SuppressWarnings({"rawtypes", "RedundantSuppression"})
3233
@AutoService({AdditionalHttpCommands.class, AugmenterProvider.class})
3334
public class AddHasCdp extends org.openqa.selenium.chromium.AddHasCdp {
3435

java/src/org/openqa/selenium/edge/EdgeDriverService.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public static EdgeDriverService createDefaultService() {
134134
}
135135

136136
/** Builder used to configure new {@link EdgeDriverService} instances. */
137+
@SuppressWarnings({"rawtypes", "RedundantSuppression"})
137138
@AutoService(DriverService.Builder.class)
138139
public static class Builder extends DriverService.Builder<EdgeDriverService, Builder> {
139140

@@ -188,19 +189,6 @@ public Builder withBuildCheckDisabled(boolean noBuildCheck) {
188189
return this;
189190
}
190191

191-
/**
192-
* Configures the driver server log level.
193-
*
194-
* @deprecated Use {@link #withLoglevel(ChromiumDriverLogLevel)} instead.
195-
*/
196-
@Deprecated
197-
public Builder withLoglevel(String logLevel) {
198-
this.logLevel = ChromiumDriverLogLevel.fromString(logLevel);
199-
this.silent = false;
200-
this.verbose = false;
201-
return this;
202-
}
203-
204192
/**
205193
* Configures the driver server log level.
206194
*

java/src/org/openqa/selenium/ie/InternetExplorerDriverService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public static InternetExplorerDriverService createDefaultService() {
115115
}
116116

117117
/** Builder used to configure new {@link InternetExplorerDriverService} instances. */
118+
@SuppressWarnings({"rawtypes", "RedundantSuppression"})
118119
@AutoService(DriverService.Builder.class)
119120
public static class Builder
120121
extends DriverService.Builder<

0 commit comments

Comments
 (0)