Don't use String.contains(). (FELIX-2611)
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@999534 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundlerepository/pom.xml b/bundlerepository/pom.xml
index ed7ad04..f345dd8 100644
--- a/bundlerepository/pom.xml
+++ b/bundlerepository/pom.xml
@@ -33,7 +33,7 @@
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>org.apache.felix.utils</artifactId>
- <version>1.0.0</version>
+ <version>1.0.1-SNAPSHOT</version>
<optional>true</optional>
</dependency>
<dependency>
diff --git a/utils/src/main/java/org/apache/felix/utils/manifest/Clause.java b/utils/src/main/java/org/apache/felix/utils/manifest/Clause.java
index 33b5307..8bc0838 100644
--- a/utils/src/main/java/org/apache/felix/utils/manifest/Clause.java
+++ b/utils/src/main/java/org/apache/felix/utils/manifest/Clause.java
@@ -78,7 +78,7 @@
for (int i = 0; directives != null && i < directives.length; i++)
{
sb.append(";").append(directives[i].getName()).append(":=");
- if (directives[i].getValue().contains(","))
+ if (directives[i].getValue().indexOf(",") >= 0)
{
sb.append("\"").append(directives[i].getValue()).append("\"");
}
@@ -90,7 +90,7 @@
for (int i = 0; attributes != null && i < attributes.length; i++)
{
sb.append(";").append(attributes[i].getName()).append("=");
- if (attributes[i].getValue().contains(","))
+ if (attributes[i].getValue().indexOf(",") >= 0)
{
sb.append("\"").append(attributes[i].getValue()).append("\"");
}