Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-07-05 07:25:34 +0000
committerLars Vogel2019-07-05 12:17:00 +0000
commit272463c9791dd8cb7a814e44b262f7a4a5c7f863 (patch)
tree13251f84af3b174f27f1113a03b9fec965e15233
parent4fd4608546a5276d0e15042faa8b7ec2bde8d686 (diff)
downloadrt.equinox.framework-272463c9791dd8cb7a814e44b262f7a4a5c7f863.tar.gz
rt.equinox.framework-272463c9791dd8cb7a814e44b262f7a4a5c7f863.tar.xz
rt.equinox.framework-272463c9791dd8cb7a814e44b262f7a4a5c7f863.zip
Using indexOf char instead of indexOf String
See https://sourceforge.net/p/findbugs/feature-requests/300/#cb7f for a performance related discussion Change-Id: I949b723c4348b95d4d9c4802230ebf57e0b25f41 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.osgi.util/src/org/osgi/util/xml/XMLParserActivator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi.util/src/org/osgi/util/xml/XMLParserActivator.java b/bundles/org.eclipse.osgi.util/src/org/osgi/util/xml/XMLParserActivator.java
index a7e84c4ac..7086f3d0c 100644
--- a/bundles/org.eclipse.osgi.util/src/org/osgi/util/xml/XMLParserActivator.java
+++ b/bundles/org.eclipse.osgi.util/src/org/osgi/util/xml/XMLParserActivator.java
@@ -204,7 +204,7 @@ public class XMLParserActivator implements BundleActivator, ServiceFactory<Objec
if (pfcName.length() == 0) {
continue; // blank line
}
- int commentIdx = pfcName.indexOf("#");
+ int commentIdx = pfcName.indexOf('#');
if (commentIdx == 0) { // comment line
continue;
} else

Back to the top