This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.testing.osgi-mock-1.3.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-osgi-mock.git
commit aede0b498b65f93cf659f857ecaf191305685114 Author: Stefan Seifert <[email protected]> AuthorDate: Sun May 17 13:11:24 2015 +0000 SLING-4720 Add support for "Long" and "Boolean" property types in SCR metadata git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/osgi-mock@1679853 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/sling/testing/mock/osgi/OsgiMetadataUtil.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/testing/mock/osgi/OsgiMetadataUtil.java b/src/main/java/org/apache/sling/testing/mock/osgi/OsgiMetadataUtil.java index f117dd6..971882e 100644 --- a/src/main/java/org/apache/sling/testing/mock/osgi/OsgiMetadataUtil.java +++ b/src/main/java/org/apache/sling/testing/mock/osgi/OsgiMetadataUtil.java @@ -241,7 +241,14 @@ final class OsgiMetadataUtil { String type = getAttributeValue(node, "type"); if (StringUtils.equals("Integer", type)) { props.put(name, Integer.parseInt(value)); - } else { + } + else if (StringUtils.equals("Long", type)) { + props.put(name, Long.parseLong(value)); + } + else if (StringUtils.equals("Boolean", type)) { + props.put(name, Boolean.parseBoolean(value)); + } + else { props.put(name, value); } } -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
