diff options
author | Noel Grandin <noel@peralex.com> | 2012-08-21 09:07:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-08-28 16:15:43 +0200 |
commit | 4e2c95c786ecd5931e6fb7f2ceda5c203350f305 (patch) | |
tree | d95d9c8d3372b78250732d837ce6e433078acd0b /odk/source | |
parent | 0439c5189a81aa74e2e998b773cf7a4b1271c83f (diff) |
Java cleanup - remove unnecessary null checks
Change-Id: I72a847b1180e9aeb8dec18bcaedee7286eee7754
Diffstat (limited to 'odk/source')
-rw-r--r-- | odk/source/com/sun/star/lib/loader/InstallationFinder.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/odk/source/com/sun/star/lib/loader/InstallationFinder.java b/odk/source/com/sun/star/lib/loader/InstallationFinder.java index 6b2860f4d705..e220edecc636 100644 --- a/odk/source/com/sun/star/lib/loader/InstallationFinder.java +++ b/odk/source/com/sun/star/lib/loader/InstallationFinder.java @@ -350,12 +350,10 @@ final class InstallationFinder { "reading which command output failed: " + e ); return null; } finally { - if ( br != null ) { - try { - br.close(); - } catch ( IOException e ) { - // closing standard input stream failed, ignore - } + try { + br.close(); + } catch ( IOException e ) { + // closing standard input stream failed, ignore } } |