commit | 1615e557f28e4b53671dea26cdcad3da59d5d9e8 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Tue May 30 14:10:06 2006 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Tue May 30 14:10:06 2006 +0000 |
tree | c128728150c879632e4e87639a46ebd4d05f6d1b | |
parent | 4996f40953ed59b8cb59deaa4ef1b058deb27efd [diff] |
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(); }