mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-13 13:03:54 +00:00
Add and apply .editorconfig from P2 (#1195)
* Consistenty use javax annotations. - Unfortunately jetbrains annotations seem to be exposed transitively via core somewhere, but with the correct IDE settings, annotations can be defaulted to javax - Cleaning up of import order in #1195 - Must be merged before #1195 * Add and apply .editorconfig from P2 - Does not rearrange entries * Address some comments * add back some javadoc comments * Address final comments Co-authored-by: NotMyFault <mc.cache@web.de>
This commit is contained in:
@ -4,8 +4,8 @@ import com.fastasyncworldedit.bukkit.util.MinecraftVersion;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
public class MinecraftVersionTest {
|
||||
|
||||
|
@ -30,6 +30,7 @@ import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class DinnerPermsResolverTest {
|
||||
|
||||
private DinnerPermsResolver resolver;
|
||||
|
||||
@BeforeEach
|
||||
@ -86,4 +87,5 @@ public class DinnerPermsResolverTest {
|
||||
assertTrue(resolver.inGroup(permissible, "b"));
|
||||
assertFalse(resolver.inGroup(permissible, "c"));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -31,15 +31,16 @@ import org.bukkit.permissions.PermissionAttachment;
|
||||
import org.bukkit.permissions.PermissionAttachmentInfo;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public class TestOfflinePermissible implements OfflinePlayer, Permissible {
|
||||
|
||||
private boolean op;
|
||||
private UUID randomUuid = UUID.randomUUID();
|
||||
|
||||
@ -190,15 +191,15 @@ public class TestOfflinePermissible implements OfflinePlayer, Permissible {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getLastLogin() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
@Override
|
||||
public long getLastLogin() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getLastSeen() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
@Override
|
||||
public long getLastSeen() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void incrementStatistic(@Nonnull Statistic statistic) throws IllegalArgumentException {
|
||||
@ -212,19 +213,19 @@ public class TestOfflinePermissible implements OfflinePlayer, Permissible {
|
||||
|
||||
@Override
|
||||
public void incrementStatistic(@Nonnull Statistic statistic, int amount)
|
||||
throws IllegalArgumentException {
|
||||
throws IllegalArgumentException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrementStatistic(@Nonnull Statistic statistic, int amount)
|
||||
throws IllegalArgumentException {
|
||||
throws IllegalArgumentException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStatistic(@Nonnull Statistic statistic, int newValue)
|
||||
throws IllegalArgumentException {
|
||||
throws IllegalArgumentException {
|
||||
|
||||
}
|
||||
|
||||
@ -235,73 +236,84 @@ public class TestOfflinePermissible implements OfflinePlayer, Permissible {
|
||||
|
||||
@Override
|
||||
public void incrementStatistic(@Nonnull Statistic statistic, @Nonnull Material material)
|
||||
throws IllegalArgumentException {
|
||||
throws IllegalArgumentException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrementStatistic(@Nonnull Statistic statistic, @Nonnull Material material)
|
||||
throws IllegalArgumentException {
|
||||
throws IllegalArgumentException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getStatistic(@Nonnull Statistic statistic, @Nonnull Material material)
|
||||
throws IllegalArgumentException {
|
||||
throws IllegalArgumentException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void incrementStatistic(@Nonnull Statistic statistic, @Nonnull Material material,
|
||||
int amount) throws IllegalArgumentException {
|
||||
public void incrementStatistic(
|
||||
@Nonnull Statistic statistic, @Nonnull Material material,
|
||||
int amount
|
||||
) throws IllegalArgumentException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrementStatistic(@Nonnull Statistic statistic, @Nonnull Material material,
|
||||
int amount) throws IllegalArgumentException {
|
||||
public void decrementStatistic(
|
||||
@Nonnull Statistic statistic, @Nonnull Material material,
|
||||
int amount
|
||||
) throws IllegalArgumentException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStatistic(@Nonnull Statistic statistic, @Nonnull Material material, int newValue)
|
||||
throws IllegalArgumentException {
|
||||
throws IllegalArgumentException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void incrementStatistic(@Nonnull Statistic statistic, @Nonnull EntityType entityType)
|
||||
throws IllegalArgumentException {
|
||||
throws IllegalArgumentException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrementStatistic(@Nonnull Statistic statistic, @Nonnull EntityType entityType)
|
||||
throws IllegalArgumentException {
|
||||
throws IllegalArgumentException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getStatistic(@Nonnull Statistic statistic, @Nonnull EntityType entityType)
|
||||
throws IllegalArgumentException {
|
||||
throws IllegalArgumentException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void incrementStatistic(@Nonnull Statistic statistic, @Nonnull EntityType entityType,
|
||||
int amount) throws IllegalArgumentException {
|
||||
public void incrementStatistic(
|
||||
@Nonnull Statistic statistic, @Nonnull EntityType entityType,
|
||||
int amount
|
||||
) throws IllegalArgumentException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decrementStatistic(@Nonnull Statistic statistic, @Nonnull EntityType entityType,
|
||||
int amount) {
|
||||
public void decrementStatistic(
|
||||
@Nonnull Statistic statistic, @Nonnull EntityType entityType,
|
||||
int amount
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStatistic(@Nonnull Statistic statistic, @Nonnull EntityType entityType,
|
||||
int newValue) {
|
||||
public void setStatistic(
|
||||
@Nonnull Statistic statistic, @Nonnull EntityType entityType,
|
||||
int newValue
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user