Replace Guava with Java joiner

This commit is contained in:
games647
2022-07-17 16:53:16 +02:00
parent 6cf1a79ae1
commit 18a8d7a5dc

View File

@ -26,8 +26,8 @@
package com.github.games647.fastlogin.core.shared;
import com.github.games647.fastlogin.core.StoredProfile;
import com.google.common.base.MoreObjects;
import java.util.StringJoiner;
import java.util.UUID;
public abstract class LoginSession {
@ -90,13 +90,13 @@ public abstract class LoginSession {
}
@Override
public synchronized String toString() {
return MoreObjects.toStringHelper(this)
.add("profile", profile)
.add("requestUsername", requestUsername)
.add("username", username)
.add("uuid", uuid)
.add("registered", registered)
public String toString() {
return new StringJoiner(", ", LoginSession.class.getSimpleName() + "[", "]")
.add("profile=" + profile)
.add("requestUsername='" + requestUsername + "'")
.add("username='" + username + "'")
.add("uuid=" + uuid)
.add("registered=" + registered)
.toString();
}
}