jtulach commented on code in PR #9732:
URL: https://github.com/apache/netbeans/pull/9732#discussion_r4374540304


##########
java/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/FixedWatchesManager.java:
##########
@@ -361,18 +361,11 @@ private void createFixedWatch (Object node) {
         }
     }
 
-    public void addFixedWatch (String name, Variable variable) {
+    public void addFixedWatch (String name, Variable orig) {
         // Clone the variable to assure that it's unique and sticks to the JDI 
value.
-        if (variable instanceof Cloneable) {

Review Comment:
   - previous obscure alternative of 
[Variable.toFixed()](https://github.com/apache/netbeans/pull/9732/changes#r4374525040)
   - the `AbstractVariable` implemented `Cloneable`, but as `Object.clone()` 
method is protected...
   - reflection had to be used to call it
   - now it becomes simple `toFixed()` call



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to