Remove unnecessary modifiers.

This commit is contained in:
Photon-GitHub 2022-07-25 14:08:41 +02:00
parent ab4977993e
commit 4c339254c5
1 changed files with 4 additions and 4 deletions

View File

@ -7,10 +7,10 @@ import com.comphenix.protocol.reflect.ExactReflection;
import java.lang.reflect.Field;
import org.junit.jupiter.api.Test;
public class AccessorsTest {
class AccessorsTest {
@Test
public void testField() {
void testField() {
Player player = new Player(123, "ABC");
Field id = assertDoesNotThrow(() -> ExactReflection.fromClass(Player.class, true).getField("id"));
@ -24,7 +24,7 @@ public class AccessorsTest {
}
@Test
public void testMethod() {
void testMethod() {
Player player = new Player(123, "ABC");
assertDoesNotThrow(() -> Accessors.getMethodAccessor(player.getClass(), "setId", int.class).invoke(player, 0));
@ -32,7 +32,7 @@ public class AccessorsTest {
}
@Test
public void testConstructor() {
void testConstructor() {
Player player = (Player) assertDoesNotThrow(() -> Accessors
.getConstructorAccessor(Player.class, int.class, String.class)
.invoke(12, "hi"));