Skip to content

Commit 5b8f1c7

Browse files
Fixing out checkstyle issues
1 parent 847e197 commit 5b8f1c7

File tree

7 files changed

+16
-14
lines changed

7 files changed

+16
-14
lines changed

src/main/java/io/appium/java_client/android/connection/ConnectionState.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,26 @@ public ConnectionState(long bitMask) {
3232
}
3333

3434
/**
35+
* Is airplane mode enabled or not.
36+
*
3537
* @return true if airplane mode is enabled.
3638
*/
3739
public boolean isAirplaneModeEnabled() {
3840
return (bitMask & AIRPLANE_MODE_MASK) != 0;
3941
}
4042

4143
/**
44+
* Is Wi-Fi connection enabled or not.
45+
*
4246
* @return true if Wi-Fi connection is enabled.
4347
*/
4448
public boolean isWiFiEnabled() {
4549
return (bitMask & WIFI_MASK) != 0;
4650
}
4751

4852
/**
53+
* Is data connection enabled or not.
54+
*
4955
* @return true if data connection is enabled.
5056
*/
5157
public boolean isDataEnabled() {

src/main/java/io/appium/java_client/ios/HasIOSClipboard.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ default void setClipboardImage(BufferedImage img) throws IOException {
4848
}
4949

5050
/**
51-
* Get an image from the clipboard
51+
* Get an image from the clipboard.
5252
*
5353
* @return the actual image instance.
5454
* @throws IOException If the returned image cannot be decoded or if the clipboard is empty.
@@ -72,7 +72,7 @@ default void setClipboardUrl(URL url) {
7272
}
7373

7474
/**
75-
* Get an URL from the clipboard
75+
* Get an URL from the clipboard.
7676
*
7777
* @return the actual URL instance.
7878
* @throws MalformedURLException if the URL in the clipboard is not valid or if the clipboard is empty.

src/main/java/io/appium/java_client/ws/CanHandleConnects.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
public interface CanHandleConnects {
2222

2323
/**
24+
* Returns a list of all registered web socket connection handlers.
25+
*
2426
* @return The list of web socket connection handlers.
2527
*/
2628
List<Runnable> getConnectionHandlers();

src/main/java/io/appium/java_client/ws/CanHandleDisconnects.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
public interface CanHandleDisconnects {
2222

2323
/**
24+
* Returns a list of all registered web socket disconnection handlers.
25+
*
2426
* @return The list of web socket disconnection handlers.
2527
*/
2628
List<Runnable> getDisconnectionHandlers();

src/main/java/io/appium/java_client/ws/CanHandleErrors.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
public interface CanHandleErrors {
2323

2424
/**
25+
* Returns a list of all registered web socket error handlers.
26+
*
2527
* @return The list of web socket error handlers.
2628
*/
2729
List<Consumer<Throwable>> getErrorHandlers();

src/main/java/io/appium/java_client/ws/CanHandleMessages.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
public interface CanHandleMessages<T> {
2323
/**
24+
* Returns a list of all registered web socket messages handlers.
25+
*
2426
* @return The list of web socket message handlers.
2527
*/
2628
List<Consumer<T>> getMessageHandlers();

src/main/java/io/appium/java_client/ws/StringWebSocketClient.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,33 +104,21 @@ public void onMessage(String message) {
104104
getMessageHandlers().forEach(x -> x.accept(message));
105105
}
106106

107-
/**
108-
* @return The list of all registered web socket messages handlers.
109-
*/
110107
@Override
111108
public List<Consumer<String>> getMessageHandlers() {
112109
return messageHandlers;
113110
}
114111

115-
/**
116-
* @return The list of all registered web socket error handlers.
117-
*/
118112
@Override
119113
public List<Consumer<Throwable>> getErrorHandlers() {
120114
return errorHandlers;
121115
}
122116

123-
/**
124-
* @return The list of all registered web socket connection handlers.
125-
*/
126117
@Override
127118
public List<Runnable> getConnectionHandlers() {
128119
return connectHandlers;
129120
}
130121

131-
/**
132-
* @return The list of all registered web socket disconnection handlers.
133-
*/
134122
@Override
135123
public List<Runnable> getDisconnectionHandlers() {
136124
return disconnectHandlers;

0 commit comments

Comments
 (0)