Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIReferenceListVariable.java')
-rw-r--r--org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIReferenceListVariable.java54
1 files changed, 33 insertions, 21 deletions
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIReferenceListVariable.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIReferenceListVariable.java
index ce9d48b72..45a78298f 100644
--- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIReferenceListVariable.java
+++ b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIReferenceListVariable.java
@@ -11,40 +11,47 @@
package org.eclipse.jdt.internal.debug.core.model;
import org.eclipse.jdt.debug.core.IJavaObject;
-
import org.eclipse.jdt.internal.debug.core.logicalstructures.JDIPlaceholderVariable;
/**
- * A variable that stores a list of references. Used to display reference information collected from
- * the vm using the 'all references' utility in Java 6.0. This variable uses a
- * <code>JDIReferenceListValue</code> as its value. Its children will be
- * <code>JDIReferenceListEntryVariable</code>.
+ * A variable that stores a list of references. Used to display reference
+ * information collected from the vm using the 'all references' utility in Java
+ * 6.0. This variable uses a <code>JDIReferenceListValue</code> as its value.
+ * Its children will be <code>JDIReferenceListEntryVariable</code>.
*
* @since 3.3
* @see JDIReferenceListValue
* @see JDIReferenceListEntryVariable
*/
-public class JDIReferenceListVariable extends JDIPlaceholderVariable{
-
+public class JDIReferenceListVariable extends JDIPlaceholderVariable {
+
/**
- * Creates a new variable that stores a list of references, all referring to the java object specified
- * by the parameter root.
+ * Creates a new variable that stores a list of references, all referring to
+ * the java object specified by the parameter root.
*
- * @param name The name this variable should use
- * @param root The root java object that references will be collected for
+ * @param name
+ * The name this variable should use
+ * @param root
+ * The root java object that references will be collected for
*/
public JDIReferenceListVariable(String name, IJavaObject root) {
- super (name,new JDIReferenceListValue(root));
+ super(name, new JDIReferenceListValue(root));
}
-
- /* (non-Javadoc)
- * @see org.eclipse.jdt.internal.debug.core.logicalstructures.JDIPlaceholderVariable#equals(java.lang.Object)
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.jdt.internal.debug.core.logicalstructures.JDIPlaceholderVariable
+ * #equals(java.lang.Object)
*/
+ @Override
public boolean equals(Object obj) {
// Two JDIReferenceListVariables are equal if their values are equal
- if (obj instanceof JDIReferenceListVariable){
- JDIReferenceListVariable var = (JDIReferenceListVariable)obj;
- if (getValue() instanceof JDIPlaceholderValue || var.getValue() instanceof JDIPlaceholderValue){
+ if (obj instanceof JDIReferenceListVariable) {
+ JDIReferenceListVariable var = (JDIReferenceListVariable) obj;
+ if (getValue() instanceof JDIPlaceholderValue
+ || var.getValue() instanceof JDIPlaceholderValue) {
// A placeholder value is only equal to the same instance
return this == obj;
}
@@ -52,10 +59,15 @@ public class JDIReferenceListVariable extends JDIPlaceholderVariable{
}
return false;
}
-
- /* (non-Javadoc)
- * @see org.eclipse.jdt.internal.debug.core.logicalstructures.JDIPlaceholderVariable#hashCode()
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.jdt.internal.debug.core.logicalstructures.JDIPlaceholderVariable
+ * #hashCode()
*/
+ @Override
public int hashCode() {
return getValue().hashCode();
}

Back to the top