commit | 0d432125d4979c49c39d5a514ea16ddcea1a9808 | [log] [tgz] |
---|---|---|
author | Clement Escoffier <clement@apache.org> | Fri Dec 17 15:23:08 2010 +0000 |
committer | Clement Escoffier <clement@apache.org> | Fri Dec 17 15:23:08 2010 +0000 |
tree | 9cdca6bf60800c86bb3b02362f0f649756caa3f6 | |
parent | edc26e9a5232d2d2af1539f977f0ee77aa01009e [diff] |
Fix FELIX-2732 Compute the id by removing the 'modified' prefix if possible: modifiedFoo => Foo git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1050416 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java b/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java index 91cce86..770316a 100644 --- a/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java +++ b/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java
@@ -314,8 +314,10 @@ m_id = m_name.substring("bind".length()); } else if (m_name.startsWith("unbind")) { m_id = m_name.substring("unbind".length()); + } else if (m_name.startsWith("modified")) { + m_id = m_name.substring("modified".length()); } else { - System.err.println("Cannot determine the id of the bind method : " + m_name); + System.err.println("Cannot determine the id of the " + m_type + " method : " + m_name); return; } }