Remove unnecessary modifiers.
This commit is contained in:
parent
ab4977993e
commit
4c339254c5
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue