fixed warnings, unchecked

This commit is contained in:
Patrik Nordwall 2011-04-08 15:13:12 +02:00
parent 521643782e
commit c22ca54eb4

View file

@ -26,7 +26,10 @@ public class TypedActorGuiceModule extends AbstractModule {
final DependencyBinding db = bindings.get(i);
//if (db.getInterface() ne null) bind((Class) db.getInterface()).to((Class) db.getTarget()).in(Singleton.class);
//else
this.bind(db.getInterface()).toInstance(db.getTarget());
@SuppressWarnings("unchecked")
Class<Object> intf = db.getInterface();
this.bind(intf).toInstance(db.getTarget());
}
}
}