diff options
author | Lars Vogel | 2019-06-18 07:21:48 +0000 |
---|---|---|
committer | Karsten Thoms | 2019-06-18 08:01:34 +0000 |
commit | 8587a3bbc00131b5cba94f05365e573f4b041b15 (patch) | |
tree | 37ec3acd4d2cf6e5cbaf7ffc6f33c24c455bba11 /bundles/org.eclipse.swt/Eclipse SWT PI | |
parent | b3c2ede7a8454c5ec51e6aaab69e322fe4e92bdc (diff) | |
download | eclipse.platform.swt-8587a3bbc00131b5cba94f05365e573f4b041b15.tar.gz eclipse.platform.swt-8587a3bbc00131b5cba94f05365e573f4b041b15.tar.xz eclipse.platform.swt-8587a3bbc00131b5cba94f05365e573f4b041b15.zip |
Use String.contains instead of indexOf
Change-Id: Ib5e9ae7e066f809a0223299b5708462fcf6b66f9
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java b/bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java index 50e91651eb..0df7b1668b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java @@ -226,7 +226,7 @@ static boolean isLoadable () { static boolean load (String libName, StringBuilder message) { try { - if (libName.indexOf (SEPARATOR) != -1) { + if (libName.contains (SEPARATOR)) { System.load (libName); } else { System.loadLibrary (libName); |