diff options
Diffstat (limited to 'org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAValue.java')
-rw-r--r-- | org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAValue.java | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAValue.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAValue.java index 6559f2ccd..f18cf1cd6 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAValue.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAValue.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2013 IBM Corporation and others. + * Copyright (c) 2005, 2018 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -32,9 +32,6 @@ public class PDAValue extends PDADebugElement implements IValue { fValue = value; } - /* (non-Javadoc) - * @see org.eclipse.debug.core.model.IValue#getReferenceTypeName() - */ @Override public String getReferenceTypeName() throws DebugException { try { @@ -44,23 +41,17 @@ public class PDAValue extends PDADebugElement implements IValue { } return "integer"; //$NON-NLS-1$ } - /* (non-Javadoc) - * @see org.eclipse.debug.core.model.IValue#getValueString() - */ + @Override public String getValueString() throws DebugException { return fValue; } - /* (non-Javadoc) - * @see org.eclipse.debug.core.model.IValue#isAllocated() - */ + @Override public boolean isAllocated() throws DebugException { return true; } - /* (non-Javadoc) - * @see org.eclipse.debug.core.model.IValue#getVariables() - */ + @Override public IVariable[] getVariables() throws DebugException { PDAStackFrame frame = fVariable.getStackFrame(); @@ -73,9 +64,7 @@ public class PDAValue extends PDADebugElement implements IValue { } return children; } - /* (non-Javadoc) - * @see org.eclipse.debug.core.model.IValue#hasVariables() - */ + @Override public boolean hasVariables() throws DebugException { if (getVariables().length != 0) { @@ -86,18 +75,12 @@ public class PDAValue extends PDADebugElement implements IValue { // that it has children even if logical structures are not turned on. return fValue.split("\\W+").length > 1; //$NON-NLS-1$ } - /* - * (non-Javadoc) - * @see java.lang.Object#equals(java.lang.Object) - */ + @Override public boolean equals(Object obj) { return obj instanceof PDAValue && ((PDAValue)obj).fValue.equals(fValue); } - /* - * (non-Javadoc) - * @see java.lang.Object#hashCode() - */ + @Override public int hashCode() { return fValue.hashCode(); |