Fixed a few warnings

Dieser Commit ist enthalten in:
TomyLobo 2011-09-28 08:04:17 +02:00
Ursprung 2d7c462477
Commit accd841b51

Datei anzeigen

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