From bd01e710922adbfccd23e7050524280d04d1c729 Mon Sep 17 00:00:00 2001 From: vamsic007 Date: Tue, 10 Nov 2009 11:46:07 +0000 Subject: Correcting an error from previous commit. The check should be for null. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@834438 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/contribution/jee/impl/JavaEEOptionalExtensionImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'branches/sca-java-1.x/modules/contribution-jee') diff --git a/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEOptionalExtensionImpl.java b/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEOptionalExtensionImpl.java index 117af07369..bd0e026adf 100644 --- a/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEOptionalExtensionImpl.java +++ b/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEOptionalExtensionImpl.java @@ -366,7 +366,7 @@ public class JavaEEOptionalExtensionImpl implements JavaEEOptionalExtension { } private boolean hasReferenceAnnotation(InjectionTarget injectionTarget) { - if(injectionTarget.targetClass != null || injectionTarget.targetClass.equals("")) { + if(injectionTarget.targetClass == null || injectionTarget.targetClass.equals("")) { return false; } try { -- cgit v1.2.3