Skip to content

Commit

Permalink
Fixing out checkstyle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TikhomirovSergey committed Apr 18, 2018
1 parent 847e197 commit 5b8f1c7
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,26 @@ public ConnectionState(long bitMask) {
}

/**
* Is airplane mode enabled or not.
*
* @return true if airplane mode is enabled.
*/
public boolean isAirplaneModeEnabled() {
return (bitMask & AIRPLANE_MODE_MASK) != 0;
}

/**
* Is Wi-Fi connection enabled or not.
*
* @return true if Wi-Fi connection is enabled.
*/
public boolean isWiFiEnabled() {
return (bitMask & WIFI_MASK) != 0;
}

/**
* Is data connection enabled or not.
*
* @return true if data connection is enabled.
*/
public boolean isDataEnabled() {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/appium/java_client/ios/HasIOSClipboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ default void setClipboardImage(BufferedImage img) throws IOException {
}

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

/**
* Get an URL from the clipboard
* Get an URL from the clipboard.
*
* @return the actual URL instance.
* @throws MalformedURLException if the URL in the clipboard is not valid or if the clipboard is empty.
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/io/appium/java_client/ws/CanHandleConnects.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
public interface CanHandleConnects {

/**
* Returns a list of all registered web socket connection handlers.
*
* @return The list of web socket connection handlers.
*/
List<Runnable> getConnectionHandlers();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
public interface CanHandleDisconnects {

/**
* Returns a list of all registered web socket disconnection handlers.
*
* @return The list of web socket disconnection handlers.
*/
List<Runnable> getDisconnectionHandlers();
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/io/appium/java_client/ws/CanHandleErrors.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
public interface CanHandleErrors {

/**
* Returns a list of all registered web socket error handlers.
*
* @return The list of web socket error handlers.
*/
List<Consumer<Throwable>> getErrorHandlers();
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/io/appium/java_client/ws/CanHandleMessages.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

public interface CanHandleMessages<T> {
/**
* Returns a list of all registered web socket messages handlers.
*
* @return The list of web socket message handlers.
*/
List<Consumer<T>> getMessageHandlers();
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/io/appium/java_client/ws/StringWebSocketClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,33 +104,21 @@ public void onMessage(String message) {
getMessageHandlers().forEach(x -> x.accept(message));
}

/**
* @return The list of all registered web socket messages handlers.
*/
@Override
public List<Consumer<String>> getMessageHandlers() {
return messageHandlers;
}

/**
* @return The list of all registered web socket error handlers.
*/
@Override
public List<Consumer<Throwable>> getErrorHandlers() {
return errorHandlers;
}

/**
* @return The list of all registered web socket connection handlers.
*/
@Override
public List<Runnable> getConnectionHandlers() {
return connectHandlers;
}

/**
* @return The list of all registered web socket disconnection handlers.
*/
@Override
public List<Runnable> getDisconnectionHandlers() {
return disconnectHandlers;
Expand Down

0 comments on commit 5b8f1c7

Please sign in to comment.