Fix new introduced SpotBugs error and warnings

Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
Tim Krüger 2022-04-28 17:57:30 +02:00
parent 000184a338
commit 6f277cbe92
No known key found for this signature in database
GPG key ID: FECE3A7222C52A4E
2 changed files with 3 additions and 5 deletions

View file

@ -30,7 +30,7 @@ import java.util.Objects;
@Parcel
@JsonObject
public class ChatShareOCS extends GenericOCS {
public class ChatShareOCS {
@JsonField(name = "data")
public HashMap<String, ChatMessage> data;
@ -67,8 +67,7 @@ public class ChatShareOCS extends GenericOCS {
final int PRIME = 59;
int result = 1;
final Object $data = this.getData();
result = result * PRIME + ($data == null ? 43 : $data.hashCode());
return result;
return result * PRIME + ($data == null ? 43 : $data.hashCode());
}
public String toString() {

View file

@ -66,8 +66,7 @@ public class ChatShareOverall {
final int PRIME = 59;
int result = 1;
final Object $ocs = this.getOcs();
result = result * PRIME + ($ocs == null ? 43 : $ocs.hashCode());
return result;
return result * PRIME + ($ocs == null ? 43 : $ocs.hashCode());
}
public String toString() {