commit | e17852144b581b31c68f11890207fd5a647570f7 | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Thu Apr 25 11:18:42 2013 +0000 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Thu Apr 25 11:18:42 2013 +0000 |
tree | 3820f89b595bd76806cad2baea2230c2b86ec573 | |
parent | fd10884e25fb5fb82e1ccc575dfcac2b97c352b5 [diff] |
FELIX-4035 : Issue warning messages when metatype is be created, but no properties are defined git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1475702 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java index 79409e5..7a42089 100644 --- a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java +++ b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
@@ -185,7 +185,7 @@ // additional check for metatype (FELIX-4035) if ( this.container.getMetatypeContainer() != null ) { - if ( this.container.getProperties().size() == 0.) { + if ( this.container.getMetatypeContainer().getProperties().size() == 0 ) { this.logWarn(component, "Component is defined to generate metatype information, however no properties have been " + "defined; in case no properties are wanted, consider to use 'metatype=false'"); }