This commit is contained in:
Gabriele C 2016-06-03 00:07:25 +02:00
parent 6d2597a980
commit eafb3b6653
4 changed files with 3 additions and 3 deletions

View File

@ -53,10 +53,9 @@ public class ZPermissionsHandler implements PermissionHandler {
}
@Override
@SuppressWarnings("unchecked")
public List<String> getGroups(Player player) {
// TODO Gnat008 20160631: Use UUID not name?
return new ArrayList(zPermissionsService.getPlayerGroups(player.getName()));
return new ArrayList<String>(zPermissionsService.getPlayerGroups(player.getName()));
}
@Override

View File

@ -7,7 +7,6 @@ import fr.xephi.authme.settings.domain.SettingsClass;
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.newProperty;

View File

@ -57,6 +57,7 @@ public class CommandConsistencyTest {
*
* @return collection of all base command labels
*/
@SuppressWarnings("unchecked")
private static Collection<List<String>> initializeCommands() {
AuthMeServiceInitializer injector = mock(AuthMeServiceInitializer.class);
given(injector.newInstance(any(Class.class))).willAnswer(new Answer<Object>() {

View File

@ -49,6 +49,7 @@ public class ListenerServiceTest {
@Mock
private PlayerCache playerCache;
@SuppressWarnings("rawtypes")
@Before
public void initializeTestSetup() {
given(settings.getProperty(RegistrationSettings.FORCE)).willReturn(true);