You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2012/09/04 20:01:01 UTC
svn commit: r1380772 -
/felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
Author: cziegeler
Date: Tue Sep 4 18:01:01 2012
New Revision: 1380772
URL: http://svn.apache.org/viewvc?rev=1380772&view=rev
Log:
FELIX-3653 : Define the "@Reference" annotation on class level without a "referenceInterface" parameter.
Modified:
felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
Modified: felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
URL: http://svn.apache.org/viewvc/felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java?rev=1380772&r1=1380771&r2=1380772&view=diff
==============================================================================
--- felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java (original)
+++ felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java Tue Sep 4 18:01:01 2012
@@ -398,11 +398,12 @@ public class Validator {
// validate interface
if (StringUtils.isEmpty(ref.getInterfaceName())) {
this.logError(ref, "Missing interface name");
- }
- try {
- this.project.getClassLoader().loadClass(ref.getInterfaceName());
- } catch (final ClassNotFoundException e) {
- this.logError(ref, "Interface class can't be loaded: " + ref.getInterfaceName());
+ } else {
+ try {
+ this.project.getClassLoader().loadClass(ref.getInterfaceName());
+ } catch (final ClassNotFoundException e) {
+ this.logError(ref, "Interface class can't be loaded: " + ref.getInterfaceName());
+ }
}
// validate cardinality