[hg] main-silver: Braces added to eliminate warnings.

  • From:
  • To:
  • Subject: [hg] main-silver: Braces added to eliminate warnings.
  • Date: Thu, 21 Feb 2013 19:37:58 -0800

changeset f476e49a974a in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/f476e49a974a
description:
        Braces added to eliminate warnings.

diffstat:

 api.debugger.jpda/src/org/netbeans/api/debugger/jpda/JPDABreakpoint.java |  
17 +++++++--
 1 files changed, 12 insertions(+), 5 deletions(-)

diffs (55 lines):

diff --git 
a/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/JPDABreakpoint.java 
b/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/JPDABreakpoint.java
--- a/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/JPDABreakpoint.java
+++ b/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/JPDABreakpoint.java
@@ -49,7 +49,6 @@
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
 import java.util.prefs.Preferences;
 
@@ -136,7 +135,9 @@
     public void setSuspend (int s) {
         int old;
         synchronized (this) {
-            if (s == suspend) return;
+            if (s == suspend) {
+                return;
+            }
             old = suspend;
             suspend = s;
         }
@@ -160,7 +161,9 @@
     public void setHidden (boolean h) {
         boolean old;
         synchronized (this) {
-            if (h == hidden) return;
+            if (h == hidden) {
+                return;
+            }
             old = hidden;
             hidden = h;
         }
@@ -209,7 +212,9 @@
     @Override
     public void disable () {
         synchronized (this) {
-            if (!enabled) return;
+            if (!enabled) {
+                return;
+            }
             enabled = false;
         }
         firePropertyChange 
@@ -222,7 +227,9 @@
     @Override
     public void enable () {
         synchronized (this) {
-            if (enabled) return;
+            if (enabled) {
+                return;
+            }
             enabled = true;
         }
         firePropertyChange 

[hg] main-silver: Braces added to eliminate warnings.

mentlicher 02/22/2013

Project Features

About this Project

Debugger was started in November 2009, is owned by tpavek, and has 29 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close