diff options
author | Robert Antoni Buj i Gelonch <robert.buj@gmail.com> | 2014-10-11 19:15:44 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-11 23:49:14 +0000 |
commit | d860ea91d75568e2e63b0b2c84e50523d562be24 (patch) | |
tree | c58cd20041f13685a823b34cf009df534b3e92de /wizards | |
parent | 6ba7f47de32074895b830e1ef3682fa1d0d1b6be (diff) |
It is more efficient to use the integer implementations of String.indexOf()
Change-Id: Idb1e4945088b8443e9b507826e5289ee758a2bd2
Reviewed-on: https://gerrit.libreoffice.org/11919
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/common/FileAccess.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/common/FileAccess.java b/wizards/com/sun/star/wizards/common/FileAccess.java index a44c786cea2a..3424860c1643 100644 --- a/wizards/com/sun/star/wizards/common/FileAccess.java +++ b/wizards/com/sun/star/wizards/common/FileAccess.java @@ -1063,7 +1063,7 @@ public class FileAccess { if (path.startsWith("/")) { // unix - int nextSlash = path.indexOf("/", 1) + 1; + int nextSlash = path.indexOf('/', 1) + 1; firstPart = Math.min(nextSlash, (maxLength - 3) / 2); } else |