From fb8d764d841f7452fd955890cb315abbc82ae2c2 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 20 Oct 2015 14:54:36 +0100 Subject: coverity#1327460 DLS: Dead local store Change-Id: I53431357f153d61d3f80e9a3e76358d8e9bb0e0b --- .../sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'jurt') 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(); + } } /** -- cgit