summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-05 13:19:44 +0200
committerNoel Grandin <noel@peralex.com>2014-08-08 09:48:19 +0200
commitb6a83e99c8f4442c3c96198ac816dcb99419a67e (patch)
tree680dc3e55306b355983aa8c810f610015a95bf5d /scripting
parent8f020a45fa69c9458844b8b621df2e0b15ec3d16 (diff)
java: remove redundant null checks
Change-Id: Ia42e5ed715fbd3f5b84029a9844da55f307c6260
Diffstat (limited to 'scripting')
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java
index 0497bd91bcf5..ff85de923605 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java
@@ -363,10 +363,7 @@ public class ScriptEditorForBeanShell
if (fos != null) {
try {
fos.flush();
- if ( fos != null )
- {
- fos.close();
- }
+ fos.close();
}
catch (IOException ignore) {
}