Fix method name for checkstyle

This commit is contained in:
Jason Penilla committed 2023-03-25 11:37:41 -07:00
1 parent 6fda12425e
commit 7b881e594c
2 files changed
+4 -4

No files matched your search

@@ -208,7 +208,7 @@ public class CarbonPlayerCommon implements CarbonPlayer, ForwardingAudience.Sing
newIgnored.remove(player); newIgnored.remove(player);
} }
if (internal) { if (internal) {
this.ignoredPlayers.setInternal(Collections.unmodifiableSet(newIgnored)); this.ignoredPlayers.internalSet(Collections.unmodifiableSet(newIgnored));
} else { } else {
this.ignoredPlayers.set(Collections.unmodifiableSet(newIgnored)); this.ignoredPlayers.set(Collections.unmodifiableSet(newIgnored));
} }
@@ -298,7 +298,7 @@ public class CarbonPlayerCommon implements CarbonPlayer, ForwardingAudience.Sing
final Set<Key> newKeys = new HashSet<>(this.leftChannels.get()); final Set<Key> newKeys = new HashSet<>(this.leftChannels.get());
newKeys.remove(key); newKeys.remove(key);
if (internal) { if (internal) {
this.leftChannels.setInternal(Collections.unmodifiableSet(newKeys)); this.leftChannels.internalSet(Collections.unmodifiableSet(newKeys));
} else { } else {
this.leftChannels.set(Collections.unmodifiableSet(newKeys)); this.leftChannels.set(Collections.unmodifiableSet(newKeys));
} }
@@ -313,7 +313,7 @@ public class CarbonPlayerCommon implements CarbonPlayer, ForwardingAudience.Sing
final Set<Key> newKeys = new HashSet<>(this.leftChannels.get()); final Set<Key> newKeys = new HashSet<>(this.leftChannels.get());
newKeys.add(channel.key()); newKeys.add(channel.key());
if (internal) { if (internal) {
this.leftChannels.setInternal(Collections.unmodifiableSet(newKeys)); this.leftChannels.internalSet(Collections.unmodifiableSet(newKeys));
} else { } else {
this.leftChannels.set(Collections.unmodifiableSet(newKeys)); this.leftChannels.set(Collections.unmodifiableSet(newKeys));
} }
@@ -49,7 +49,7 @@ public final class PersistentUserProperty<T> {
* @param value value * @param value value
*/ */
@ApiStatus.Internal @ApiStatus.Internal
public void setInternal(final @Nullable T value) { public void internalSet(final @Nullable T value) {
this.value = value; this.value = value;
} }