1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 12:03:16 +02:00

Warning cleanup.

This commit is contained in:
Mikhail Khodjaiants 2008-04-22 16:48:04 +00:00
parent 1a7f7403db
commit 199a42471d

View file

@ -66,7 +66,7 @@ class VariableEventListener implements ICDIEventListener {
public void handleDebugEvents(ICDIEvent[] events) { public void handleDebugEvents(ICDIEvent[] events) {
fVar.handleDebugEvents(events); fVar.handleDebugEvents(events);
} }
}; }
/** /**
* Represents a variable in the CDI model. * Represents a variable in the CDI model.
@ -570,6 +570,10 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
return !isOK(); return !isOK();
} }
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.core.model.AbstractCVariable#setChanged(boolean)
*/
@Override
protected void setChanged( boolean changed ) { protected void setChanged( boolean changed ) {
IInternalVariable iv = getCurrentInternalVariable(); IInternalVariable iv = getCurrentInternalVariable();
if ( iv != null ) { if ( iv != null ) {
@ -577,6 +581,10 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
} }
} }
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.core.model.AbstractCVariable#resetValue()
*/
@Override
protected void resetValue() { protected void resetValue() {
IInternalVariable iv = getCurrentInternalVariable(); IInternalVariable iv = getCurrentInternalVariable();
if ( iv != null ) { if ( iv != null ) {
@ -593,6 +601,7 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.core.model.AbstractCVariable#dispose() * @see org.eclipse.cdt.debug.internal.core.model.AbstractCVariable#dispose()
*/ */
@Override
public void dispose() { public void dispose() {
// Hack: do not destroy local variables // Hack: do not destroy local variables
internalDispose( false ); internalDispose( false );
@ -608,6 +617,7 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
* Compares the original internal variables. * Compares the original internal variables.
* @see java.lang.Object#equals(java.lang.Object) * @see java.lang.Object#equals(java.lang.Object)
*/ */
@Override
public boolean equals( Object obj ) { public boolean equals( Object obj ) {
if ( obj instanceof CVariable ) { if ( obj instanceof CVariable ) {
// A disposed copy can be stored in the viewer. // A disposed copy can be stored in the viewer.
@ -641,6 +651,7 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.core.model.AbstractCVariable#preserve() * @see org.eclipse.cdt.debug.internal.core.model.AbstractCVariable#preserve()
*/ */
@Override
protected void preserve() { protected void preserve() {
resetStatus(); resetStatus();
IInternalVariable iv = getCurrentInternalVariable(); IInternalVariable iv = getCurrentInternalVariable();
@ -707,7 +718,7 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
/** /**
* suffix used to identify cast to array settings * suffix used to identify cast to array settings
*/ */
private final static String CAST_TO_ARRAY_SUFFIX = NAME_PART_SEPARATOR + "(cast_to_array)"; private final static String CAST_TO_ARRAY_SUFFIX = NAME_PART_SEPARATOR + "(cast_to_array)"; //$NON-NLS-1$
/** retrieve the identification for this variable. /** retrieve the identification for this variable.
* @return a string identifying this variable, to be used to store settings * @return a string identifying this variable, to be used to store settings