From: Erik Brakkee Date: Fri, 23 Jul 2010 19:26:01 +0000 (+0000) Subject: (no commit message) X-Git-Tag: wamblee-utils-0.7~194 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=4e57e113a7bca2baf1588ebb82b0f3a590e5d1c9;p=utils --- diff --git a/support/inject/src/test/java/org/wamblee/inject/TestInjectorFactory.java b/support/inject/src/test/java/org/wamblee/inject/TestInjectorFactory.java index 5e3d1cf2..b2c6c2d1 100644 --- a/support/inject/src/test/java/org/wamblee/inject/TestInjectorFactory.java +++ b/support/inject/src/test/java/org/wamblee/inject/TestInjectorFactory.java @@ -16,14 +16,16 @@ package org.wamblee.inject; public class TestInjectorFactory implements InjectorFactory { - + public static final String MAGIC_VALUE = "Hello"; public static class TestInjector implements Injector { @Override public void inject(Object aComponent) { - Pojo pojo = (Pojo) aComponent; - pojo.setValue(MAGIC_VALUE); + if (aComponent instanceof Pojo) { + Pojo pojo = (Pojo) aComponent; + pojo.setValue(MAGIC_VALUE); + } } }