mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +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
|
@Override
|
||||||
public int pdomCompareTo(PDOMBinding other) {
|
public int pdomCompareTo(PDOMBinding other) {
|
||||||
int cmp= super.pdomCompareTo(other);
|
int cmp = super.pdomCompareTo(other);
|
||||||
return cmp==0 ? compareSignatures(this, other) : cmp;
|
return cmp == 0 ? compareSignatures(this, other) : cmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuffer result = new StringBuffer();
|
StringBuilder result = new StringBuilder();
|
||||||
result.append(getName()+" "+ASTTypeUtil.getParameterTypeString(getType())); //$NON-NLS-1$
|
result.append(getName() + ASTTypeUtil.getParameterTypeString(getType()));
|
||||||
try {
|
try {
|
||||||
result.append(" "+getConstantNameForValue(getLinkageImpl(), getNodeType())); //$NON-NLS-1$
|
result.append(" " + getConstantNameForValue(getLinkageImpl(), getNodeType())); //$NON-NLS-1$
|
||||||
} catch(CoreException ce) {
|
} catch (CoreException e) {
|
||||||
result.append(" "+getNodeType()); //$NON-NLS-1$
|
result.append(" " + getNodeType()); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
return result.toString();
|
return result.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue