mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Minor adjustments to toString method.
This commit is contained in:
parent
2d4cd87741
commit
3798d2f015
1 changed files with 7 additions and 7 deletions
|
@ -254,18 +254,18 @@ class PDOMCPPFunction extends PDOMCPPBinding implements ICPPFunction, IPDOMOverl
|
|||
|
||||
@Override
|
||||
public int pdomCompareTo(PDOMBinding other) {
|
||||
int cmp= super.pdomCompareTo(other);
|
||||
return cmp==0 ? compareSignatures(this, other) : cmp;
|
||||
int cmp = super.pdomCompareTo(other);
|
||||
return cmp == 0 ? compareSignatures(this, other) : cmp;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuffer result = new StringBuffer();
|
||||
result.append(getName()+" "+ASTTypeUtil.getParameterTypeString(getType())); //$NON-NLS-1$
|
||||
StringBuilder result = new StringBuilder();
|
||||
result.append(getName() + ASTTypeUtil.getParameterTypeString(getType()));
|
||||
try {
|
||||
result.append(" "+getConstantNameForValue(getLinkageImpl(), getNodeType())); //$NON-NLS-1$
|
||||
} catch(CoreException ce) {
|
||||
result.append(" "+getNodeType()); //$NON-NLS-1$
|
||||
result.append(" " + getConstantNameForValue(getLinkageImpl(), getNodeType())); //$NON-NLS-1$
|
||||
} catch (CoreException e) {
|
||||
result.append(" " + getNodeType()); //$NON-NLS-1$
|
||||
}
|
||||
return result.toString();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue