Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-07-05 07:27:02 +0000
committerLars Vogel2019-07-05 08:58:52 +0000
commitf2344b3db3239bb775f2c0afda9585a3225e17d1 (patch)
treec530896f115e225242f6fcfad41b2eb64937a1fa /bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse
parentfc9b884466b4cea64613988d1bbd2425e18472ae (diff)
downloadeclipse.platform.swt-f2344b3db3239bb775f2c0afda9585a3225e17d1.tar.gz
eclipse.platform.swt-f2344b3db3239bb775f2c0afda9585a3225e17d1.tar.xz
eclipse.platform.swt-f2344b3db3239bb775f2c0afda9585a3225e17d1.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: I255d2fa2b525281d9a6724aadbf85828236dbb30 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java
index de2904560d..0af18e99f6 100644
--- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java
@@ -763,7 +763,7 @@ void generateFunctionCall(JNIMethod method, JNIParameter[] params, JNIType retur
output(cast);
} else {
output("(");
- output(name.substring(0, name.indexOf("_")));
+ output(name.substring(0, name.indexOf('_')));
output(" *)");
}
outputln("arg0;");

Back to the top