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 @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

View File

@ -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;

View File

@ -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>() {

View File

@ -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);