From c22ca54eb415ceaa753f6e899a024e8bea5282af Mon Sep 17 00:00:00 2001 From: Patrik Nordwall Date: Fri, 8 Apr 2011 15:13:12 +0200 Subject: [PATCH] fixed warnings, unchecked --- .../src/main/java/akka/config/TypedActorGuiceModule.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/akka-typed-actor/src/main/java/akka/config/TypedActorGuiceModule.java b/akka-typed-actor/src/main/java/akka/config/TypedActorGuiceModule.java index 8c370a8218..2452eeb706 100644 --- a/akka-typed-actor/src/main/java/akka/config/TypedActorGuiceModule.java +++ b/akka-typed-actor/src/main/java/akka/config/TypedActorGuiceModule.java @@ -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 intf = db.getInterface(); + this.bind(intf).toInstance(db.getTarget()); } } }