Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-07-05 07:25:00 +0000
committerLars Vogel2019-07-05 09:44:13 +0000
commita0693850a6f1a225d05ab453877c33c874690ccb (patch)
treecae0ce347d52c12e885e6fca27aff4b47e49e48e /org.eclipse.ui.intro/src
parent5499cca61ce601e554c9b7a5d68d86619f49660e (diff)
downloadeclipse.platform.ua-a0693850a6f1a225d05ab453877c33c874690ccb.tar.gz
eclipse.platform.ua-a0693850a6f1a225d05ab453877c33c874690ccb.tar.xz
eclipse.platform.ua-a0693850a6f1a225d05ab453877c33c874690ccb.zip
Using indexOf char instead of indexOf StringY20190705-0620
See https://sourceforge.net/p/findbugs/feature-requests/300/#cb7f for a performance related discussion Change-Id: I7fac69e4be7517984a1533062df2d4c6b7061137 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.ui.intro/src')
-rw-r--r--org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroText.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroText.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroText.java
index c3b68af90..46f0a37a0 100644
--- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroText.java
+++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroText.java
@@ -67,7 +67,7 @@ public class IntroText extends AbstractBaseIntroElement {
public boolean checkIfFormatted() {
if (text == null)
return false;
- int i = text.indexOf("<"); //$NON-NLS-1$
+ int i = text.indexOf('<');
return i == -1 ? false : true;
}

Back to the top