Sonar refactorings
This commit is contained in:
parent
91b771355b
commit
67c4e28cf5
@ -6,8 +6,8 @@ package de.svenkubiak.jpushover.exceptions;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class JPushoverException extends Exception{
|
public class JPushoverException extends Exception{
|
||||||
private static final long serialVersionUID = -5719174030861964503L;
|
private static final long serialVersionUID = 7468682477047138171L;
|
||||||
|
|
||||||
public JPushoverException(String message, Exception e) {
|
public JPushoverException(String message, Exception e) {
|
||||||
super(message, e);
|
super(message, e);
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ public class WebSocketListener implements Listener {
|
|||||||
@Override
|
@Override
|
||||||
public CompletionStage<?> onBinary(WebSocket webSocket, ByteBuffer data, boolean last) {
|
public CompletionStage<?> onBinary(WebSocket webSocket, ByteBuffer data, boolean last) {
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
String frame = StandardCharsets.UTF_8.decode(data).toString();
|
var frame = StandardCharsets.UTF_8.decode(data).toString();
|
||||||
switch (frame) {
|
switch (frame) {
|
||||||
case "!":
|
case "!":
|
||||||
messageListener.onMessage();
|
messageListener.onMessage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user