Removed dependency on JDK 1.4 StringBuffer.indexOf() method.


git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@410290 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java
index 8357af1..908accf 100644
--- a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java
+++ b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -3396,9 +3396,9 @@
             new StringBuffer(
                 props.getProperty(
                     FelixConstants.FELIX_VERSION_PROPERTY, "unknown"));
-        if (sb.indexOf("-") >= 0)
+        if (sb.toString().indexOf("-") >= 0)
         {
-            sb.setCharAt(sb.indexOf("-"), '.');
+            sb.setCharAt(sb.toString().indexOf("-"), '.');
         }
         return sb.toString();
     }