Skip to content

Commit

Permalink
[java] Remove deprecated "platform" JWP capability
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Apr 26, 2023
1 parent 2930461 commit 3d8c6fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/Capabilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ default String getBrowserName() {
}

default Platform getPlatformName() {
return Stream.of("platform", "platformName")
return Stream.of("platformName")
.map(this::getCapability)
.filter(Objects::nonNull)
.map(cap -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private Boolean initialMatch(Capabilities stereotype, Capabilities capabilities)
// Matching of extension capabilities is implementation independent. Skip them
.filter(name -> !name.contains(":"))
// Platform matching is special, we do it later
.filter(name -> !"platform".equalsIgnoreCase(name) && !"platformName".equalsIgnoreCase(name))
.filter(name -> !"platformName".equalsIgnoreCase(name))
.map(name -> {
if (capabilities.getCapability(name) instanceof String) {
return stereotype.getCapability(name).toString()
Expand Down
5 changes: 0 additions & 5 deletions java/src/org/openqa/selenium/remote/CapabilityType.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
*/
public interface CapabilityType {

/**
* @deprecated Use {@link CapabilityType#PLATFORM_NAME}
*/
@Deprecated
String PLATFORM = "platform";
/**
* @deprecated Non W3C compliant
*/
Expand Down

0 comments on commit 3d8c6fa

Please sign in to comment.