Fix annotation inconsistency and other nonsense

This commit is contained in:
Draycia committed 2020-10-02 23:28:11 -07:00
1 parent 3f6d47be1c
commit 8a1b574d62
48 files changed
+182 -326

No files matched your search

@@ -72,8 +72,7 @@ public class JSONUserService<T extends ChatUser> implements UserService<T> {
}
@Override
@Nullable
public T wrap(final @NonNull UUID uuid) {
public @Nullable T wrap(final @NonNull UUID uuid) {
try {
return this.userCache.get(uuid);
} catch (final ExecutionException exception) {
@@ -83,14 +82,12 @@ public class JSONUserService<T extends ChatUser> implements UserService<T> {
}
@Override
@Nullable
public T wrapIfLoaded(final @NonNull UUID uuid) {
public @Nullable T wrapIfLoaded(final @NonNull UUID uuid) {
return this.userCache.getIfPresent(uuid);
}
@Override
@Nullable
public T refreshUser(final @NonNull UUID uuid) {
public @Nullable T refreshUser(final @NonNull UUID uuid) {
this.userCache.invalidate(uuid);
return this.wrap(uuid);
@@ -107,8 +107,7 @@ public class MySQLUserService<T extends ChatUser> implements UserService<T> {
}
@Override
@Nullable
public T wrap(final @NonNull UUID uuid) {
public @Nullable T wrap(final @NonNull UUID uuid) {
try {
return this.userCache.get(uuid);
} catch (final ExecutionException exception) {
@@ -118,14 +117,12 @@ public class MySQLUserService<T extends ChatUser> implements UserService<T> {
}
@Override
@Nullable
public T wrapIfLoaded(final @NonNull UUID uuid) {
public @Nullable T wrapIfLoaded(final @NonNull UUID uuid) {
return this.userCache.getIfPresent(uuid);
}
@Override
@Nullable
public T refreshUser(final @NonNull UUID uuid) {
public @Nullable T refreshUser(final @NonNull UUID uuid) {
this.userCache.invalidate(uuid);
return this.wrap(uuid);