mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-24 09:37:42 +01:00
cleanup
This commit is contained in:
parent
6d2597a980
commit
eafb3b6653
@ -53,10 +53,9 @@ public class ZPermissionsHandler implements PermissionHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public List<String> getGroups(Player player) {
|
public List<String> getGroups(Player player) {
|
||||||
// TODO Gnat008 20160631: Use UUID not name?
|
// TODO Gnat008 20160631: Use UUID not name?
|
||||||
return new ArrayList(zPermissionsService.getPlayerGroups(player.getName()));
|
return new ArrayList<String>(zPermissionsService.getPlayerGroups(player.getName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -7,7 +7,6 @@ import fr.xephi.authme.settings.domain.SettingsClass;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static fr.xephi.authme.settings.domain.Property.newListProperty;
|
|
||||||
import static fr.xephi.authme.settings.domain.Property.newLowercaseListProperty;
|
import static fr.xephi.authme.settings.domain.Property.newLowercaseListProperty;
|
||||||
import static fr.xephi.authme.settings.domain.Property.newProperty;
|
import static fr.xephi.authme.settings.domain.Property.newProperty;
|
||||||
|
|
||||||
|
@ -57,6 +57,7 @@ public class CommandConsistencyTest {
|
|||||||
*
|
*
|
||||||
* @return collection of all base command labels
|
* @return collection of all base command labels
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
private static Collection<List<String>> initializeCommands() {
|
private static Collection<List<String>> initializeCommands() {
|
||||||
AuthMeServiceInitializer injector = mock(AuthMeServiceInitializer.class);
|
AuthMeServiceInitializer injector = mock(AuthMeServiceInitializer.class);
|
||||||
given(injector.newInstance(any(Class.class))).willAnswer(new Answer<Object>() {
|
given(injector.newInstance(any(Class.class))).willAnswer(new Answer<Object>() {
|
||||||
|
@ -49,6 +49,7 @@ public class ListenerServiceTest {
|
|||||||
@Mock
|
@Mock
|
||||||
private PlayerCache playerCache;
|
private PlayerCache playerCache;
|
||||||
|
|
||||||
|
@SuppressWarnings("rawtypes")
|
||||||
@Before
|
@Before
|
||||||
public void initializeTestSetup() {
|
public void initializeTestSetup() {
|
||||||
given(settings.getProperty(RegistrationSettings.FORCE)).willReturn(true);
|
given(settings.getProperty(RegistrationSettings.FORCE)).willReturn(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user