Skip to content

Commit

Permalink
[java] Removing deprecated getPlatform and getVersion
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
diemol committed Jun 10, 2022
1 parent 4dcc9c4 commit 25564bd
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions java/src/org/openqa/selenium/Capabilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ default String getBrowserName() {
return String.valueOf(Optional.ofNullable(getCapability("browserName")).orElse(""));
}

/**
* @deprecated Use {@link #getPlatformName()}
*/
@Deprecated
default Platform getPlatform() {
return getPlatformName();
}

default Platform getPlatformName() {
return Stream.of("platform", "platformName")
.map(this::getCapability)
Expand All @@ -62,14 +54,6 @@ default Platform getPlatformName() {
.orElse(null);
}

/**
* @deprecated Use {@link #getBrowserVersion()}
*/
@Deprecated
default String getVersion() {
return getBrowserVersion();
}

default String getBrowserVersion() {
return String.valueOf(Optional.ofNullable(getCapability("browserVersion")).orElse(
Optional.ofNullable(getCapability("version")).orElse("")));
Expand Down

0 comments on commit 25564bd

Please sign in to comment.