Fixed a few warnings

This commit is contained in:
TomyLobo 2011-09-28 08:04:17 +02:00
parent 2d7c462477
commit accd841b51

View File

@ -59,6 +59,7 @@ public class PermissionsResolverManager implements PermissionsResolver {
private String name;
private Logger logger;
@SuppressWarnings("unchecked")
protected Class<? extends PermissionsResolver>[] availableResolvers = new Class[] {
PluginPermissionsResolver.class,
PermissionsExResolver.class,
@ -87,7 +88,7 @@ public class PermissionsResolverManager implements PermissionsResolver {
}
public void findResolver() {
for (Class resolverClass : availableResolvers) {
for (Class<? extends PermissionsResolver> resolverClass : availableResolvers) {
try {
Method factoryMethod = resolverClass.getMethod("factory", Server.class, Configuration.class);