Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-06-19 14:17:57 +0000
committerLars Vogel2019-06-20 14:25:42 +0000
commit36b850767578207b6c227d0438e81ec0bd7c2e08 (patch)
tree8fa945238073d0a298d8d8d3c840f05105e66ec5
parent6b58788540071dcc593183e645db40475cf9fb26 (diff)
downloadrt.equinox.framework-36b850767578207b6c227d0438e81ec0bd7c2e08.tar.gz
rt.equinox.framework-36b850767578207b6c227d0438e81ec0bd7c2e08.tar.xz
rt.equinox.framework-36b850767578207b6c227d0438e81ec0bd7c2e08.zip
Use contains instead of indexOf in JNIBridge
Change-Id: I5b2af82a7abbf295df2de40f7f1870c0af269f29 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/JNIBridge.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/JNIBridge.java b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/JNIBridge.java
index 46a402579..c06d8e077 100644
--- a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/JNIBridge.java
+++ b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/JNIBridge.java
@@ -58,7 +58,7 @@ public class JNIBridge {
private void loadLibrary() {
if (library != null) {
try {
- if (library.indexOf("wpf") != -1) { //$NON-NLS-1$
+ if (library.contains("wpf")) { //$NON-NLS-1$
int idx = library.indexOf("eclipse_"); //$NON-NLS-1$
if (idx != -1) {
String comLibrary = library.substring(0, idx) + "com_"; //$NON-NLS-1$
@@ -186,7 +186,7 @@ public class JNIBridge {
*/
public boolean uninitialize() {
if (libraryLoaded && library != null) {
- if (library.indexOf("wpf") != -1) { //$NON-NLS-1$
+ if (library.contains("wpf")) { //$NON-NLS-1$
try {
OleUninitialize();
} catch (UnsatisfiedLinkError e) {

Back to the top