From c9a19bb5ca5c2accfabade6b8f87e40db492ebfa Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Tue, 24 Apr 2018 10:47:39 +0300 Subject: Move debug.examples.core BREE to Java 1.8. Remove useless non-javadoc comments and some lambda conversion. Change-Id: Ied79c9f7009064acc93b8df0eddf8e505d7554e4 Signed-off-by: Alexander Kurtakov --- .../debug/examples/core/pda/model/PDAValue.java | 31 +++++----------------- 1 file changed, 7 insertions(+), 24 deletions(-) (limited to 'org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAValue.java') 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(); -- cgit v1.2.3