diff options
Diffstat (limited to 'scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java index d08011b42a0c..2da7926b94e7 100644 --- a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java +++ b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java @@ -612,12 +612,12 @@ public abstract class ScriptProvider String libName; if (Name.endsWith("/")) { - String tmp = Name.substring( 0, Name.lastIndexOf( "/" ) ); - libName = tmp.substring( tmp.lastIndexOf( "/" ) + 1 ); + String tmp = Name.substring( 0, Name.lastIndexOf('/') ); + libName = tmp.substring( tmp.lastIndexOf('/') + 1 ); } else { - libName = Name.substring( Name.lastIndexOf( "/" ) + 1 ); + libName = Name.substring( Name.lastIndexOf('/') + 1 ); } LogUtils.DEBUG("Deregistering library " + libName ); if ( c.removeParcel( libName ) ) |