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


##########
java/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/Variable.java:
##########
@@ -61,5 +61,17 @@ public interface Variable {
      * @since 2.44
      */
     Object createMirrorObject();
-    
+
+    /** Creates an<em>immutable snapshot</em> of the variable.
+     * Clones the variable to assure that it is unique and sticks to its 
current JDI value.
+     * This is an optional operation. Variables that have no notion of
+     * <em>snapshotting</em> may return {@code this} as the default 
implementation
+     * of this method does.
+     *
+     * @return an <em>immutable snapshot</em> of the variable
+     * @since 3.47
+     */
+    default Variable toFixed() {

Review Comment:
   `toFixed` functionality was there, but it wasn't easily accessible via the 
API. Making it real.



##########
java/api.debugger.jpda/src/org/netbeans/api/debugger/jpda/Variable.java:
##########
@@ -61,5 +61,17 @@ public interface Variable {
      * @since 2.44
      */
     Object createMirrorObject();
-    
+
+    /** Creates an<em>immutable snapshot</em> of the variable.
+     * Clones the variable to assure that it is unique and sticks to its 
current JDI value.
+     * This is an optional operation. Variables that have no notion of
+     * <em>snapshotting</em> may return {@code this} as the default 
implementation
+     * of this method does.
+     *
+     * @return an <em>immutable snapshot</em> of the variable
+     * @since 3.47
+     */
+    default Variable toFixed() {

Review Comment:
   `toFixed` functionality was there, but it wasn't easily accessible via the 
API. Making it real, official API.



-- 
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