Sonar refactorings

This commit is contained in:
Sven Kubiak 2022-02-04 16:10:49 +01:00
parent 91b771355b
commit 67c4e28cf5
2 changed files with 3 additions and 3 deletions

View File

@ -6,8 +6,8 @@ package de.svenkubiak.jpushover.exceptions;
*
*/
public class JPushoverException extends Exception{
private static final long serialVersionUID = -5719174030861964503L;
private static final long serialVersionUID = 7468682477047138171L;
public JPushoverException(String message, Exception e) {
super(message, e);
}

View File

@ -29,7 +29,7 @@ public class WebSocketListener implements Listener {
@Override
public CompletionStage<?> onBinary(WebSocket webSocket, ByteBuffer data, boolean last) {
if (data != null) {
String frame = StandardCharsets.UTF_8.decode(data).toString();
var frame = StandardCharsets.UTF_8.decode(data).toString();
switch (frame) {
case "!":
messageListener.onMessage();