[hg] main-silver: Typo correction, @Override annotations and bra...

  • From:
  • To:
  • Subject: [hg] main-silver: Typo correction, @Override annotations and bra...
  • Date: Thu, 21 Feb 2013 19:39:13 -0800

changeset f25bc4f088fe in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/f25bc4f088fe
description:
        Typo correction, @Override annotations and brackets addition.

diffstat:

 
debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/ReturnVariableImpl.java
 |  21 +++++++--
 1 files changed, 15 insertions(+), 6 deletions(-)

diffs (64 lines):

diff --git 
a/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/ReturnVariableImpl.java
 
b/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/ReturnVariableImpl.java
--- 
a/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/ReturnVariableImpl.java
+++ 
b/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/ReturnVariableImpl.java
@@ -56,7 +56,6 @@
 import 
org.netbeans.modules.debugger.jpda.jdi.ObjectCollectedExceptionWrapper;
 import org.netbeans.modules.debugger.jpda.jdi.ObjectReferenceWrapper;
 import org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper;
-import org.openide.util.Exceptions;
 
 /**
  *
@@ -66,7 +65,7 @@
     
     private String methodName;
     
-    /** Creates a new instance of ClassVariableImpl */
+    /** Creates a new instance of ReturnVariableImpl */
     public ReturnVariableImpl(
         JPDADebuggerImpl debugger,
         Value returnValue,
@@ -82,10 +81,16 @@
     }
     
     private static String getStringValue(Value v) {
-        if (v == null) return "null";
-        if (v instanceof VoidValue) return "void";
-        if (v instanceof PrimitiveValue) return v.toString();
-        else try {
+        if (v == null) {
+            return "null";
+        }
+        if (v instanceof VoidValue) {
+            return "void";
+        }
+        if (v instanceof PrimitiveValue) {
+            return v.toString();
+        } else {
+            try {
             return "#" + ObjectReferenceWrapper.uniqueID((ObjectReference) 
v);
         } catch (InternalExceptionWrapper ex) {
             return "#"+ex.getLocalizedMessage();
@@ -95,11 +100,14 @@
             return "#0";
         }
     }
+    }
     
+    @Override
     public String methodName() {
         return methodName;
     }
 
+    @Override
     public ReturnVariableImpl clone() {
         return new ReturnVariableImpl(
                 getDebugger(),
@@ -108,6 +116,7 @@
                 methodName);
     }
     
+    @Override
     public String toString () {
         return "ReturnVariable " + getValue();
     }

[hg] main-silver: Typo correction, @Override annotations and bra...

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