diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-20 14:54:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-20 21:18:33 +0100 |
commit | fb8d764d841f7452fd955890cb315abbc82ae2c2 (patch) | |
tree | 6fd8abb654891c22860818540db43d05093fe601 /jurt | |
parent | b23deda0bbd27c424bd1b8bac3e8655cc1de620f (diff) |
coverity#1327460 DLS: Dead local store
Change-Id: I53431357f153d61d3f80e9a3e76358d8e9bb0e0b
Diffstat (limited to 'jurt')
-rw-r--r-- | jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java b/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java index c949b5598e16..05dd9c7a92ee 100644 --- a/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java +++ b/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java @@ -449,9 +449,12 @@ public class java_remote_bridge * @see com.sun.star.uno.IBridge#acquire */ public void acquire() { - int x = _life_count.incrementAndGet(); - - if(DEBUG) System.err.println("##### " + getClass().getName() + ".acquire:" + x); + if(DEBUG) { + int x = _life_count.incrementAndGet(); + System.err.println("##### " + getClass().getName() + ".acquire:" + x); + } else { + _life_count.incrementAndGet(); + } } /** |