commit | f40c8429e557fc2c2e5696be7f6cb46a685fb315 | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Wed Apr 22 10:08:23 2009 +0000 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Wed Apr 22 10:08:23 2009 +0000 |
tree | c38cdcf2033f850662e1244c717b187f1542628a | |
parent | 750b5f21dec8ca65449299e479467f75b85a92dd [diff] |
FELIX-1010 : Remove quotes from annotation value if it is a string. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@767442 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/annotation/defaulttag/Util.java b/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/annotation/defaulttag/Util.java index 4478fe6..87dbffd 100644 --- a/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/annotation/defaulttag/Util.java +++ b/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/annotation/defaulttag/Util.java
@@ -77,7 +77,11 @@ final Object obj = annotation.getNamedParameter(name); if ( obj != null ) { if ( obj instanceof String ) { - return (String)obj; + final String s = (String)obj; + if ( s.startsWith("\"") && s.endsWith("\"")) { + return s.substring(1, s.length() - 1); + } + return s; } return obj.toString(); }