[hg] main-silver: #226384: Remove trailing semicolons from break...

  • From:
  • To:
  • Subject: [hg] main-silver: #226384: Remove trailing semicolons from break...
  • Date: Mon, 10 Jun 2013 14:35:51 -0700

changeset c6cac773105e in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/c6cac773105e
description:
        #226384: Remove trailing semicolons from breakpoint condition.

diffstat:

 
debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/breakpoints/ConditionsPanel.java
 |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (25 lines):

diff --git 
a/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/breakpoints/ConditionsPanel.java
 
b/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/breakpoints/ConditionsPanel.java
--- 
a/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/breakpoints/ConditionsPanel.java
+++ 
b/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/breakpoints/ConditionsPanel.java
@@ -255,6 +255,7 @@
         if (conditionCheckBox.isSelected()) {
             String condition = tfCondition.getText().trim();
             if (condition.length() > 0) {
+                condition = adjustCondition(condition);
                 Object[] savedConditions = getSavedConditions();
                 Object[] conditions = null;
                 boolean containsCondition = false;
@@ -290,6 +291,13 @@
         }
     }
     
+    private static String adjustCondition(String condition) {
+        while (condition.endsWith(";")) {
+            condition = condition.substring(0, condition.length() - 
1).trim();
+        }
+        return condition;
+    }
+
     public HIT_COUNT_FILTERING_STYLE getHitCountFilteringStyle() {
         if (!cbWhenHitCount.isSelected()) {
             return null;

[hg] main-silver: #226384: Remove trailing semicolons from break...

mentlicher 06/10/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 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close