Skip to content

Commit 640af41

Browse files
User253489shs96c
authored andcommitted
Fix issues in comments and exception messages.
Signed-off-by: Simon Stewart <simon.m.stewart@gmail.com>
1 parent 7568f7a commit 640af41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java/client/src/org/openqa/selenium/Capabilities.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ default Platform getPlatform() {
4848
return (Platform) rawPlatform;
4949
}
5050

51-
throw new IllegalStateException("Platform was neither a string or a Platform: " + rawPlatform);
51+
throw new IllegalStateException("Platform was neither a string nor a Platform: " + rawPlatform);
5252
}
5353

5454
default String getVersion() {
@@ -57,7 +57,7 @@ default String getVersion() {
5757
}
5858

5959
/**
60-
* @deprecated Use is(SUPPORTS_JAVASCRIPT) instead
60+
* @deprecated Use is(SUPPORTS_JAVASCRIPT) instead.
6161
* @see #is(String)
6262
* @see org.openqa.selenium.remote.CapabilityType#SUPPORTS_JAVASCRIPT
6363
*/
@@ -67,7 +67,7 @@ default boolean isJavascriptEnabled() {
6767
}
6868

6969
/**
70-
* @return The capabilities as a Map
70+
* @return The capabilities as a Map.
7171
*/
7272
Map<String, ?> asMap();
7373

@@ -86,7 +86,7 @@ default boolean isJavascriptEnabled() {
8686
default boolean is(String capabilityName) {
8787
Object cap = getCapability(capabilityName);
8888
if (cap == null) {
89-
// javascriptEnabled is true if not set explicitly
89+
// If it's not set explicitly, javascriptEnabled is true.
9090
return "javascriptEnabled".equals(capabilityName);
9191
}
9292
return cap instanceof Boolean ? (Boolean) cap : Boolean.parseBoolean(String.valueOf(cap));

0 commit comments

Comments
 (0)