Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2008-03-08 23:11:15 +0000
committerSergey Prigogin2008-03-08 23:11:15 +0000
commit3798d2f015907e79ecc7d580ba399645406abeee (patch)
tree59c8d1414899f24b9a888c34f768d4377980f448 /core/org.eclipse.cdt.core/parser
parent2d4cd87741f9d1a1ddd51dbc5c902d4e931dacd6 (diff)
downloadorg.eclipse.cdt-3798d2f015907e79ecc7d580ba399645406abeee.tar.gz
org.eclipse.cdt-3798d2f015907e79ecc7d580ba399645406abeee.tar.xz
org.eclipse.cdt-3798d2f015907e79ecc7d580ba399645406abeee.zip
Minor adjustments to toString method.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java
index e5a7f369148..6c0573e70d8 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java
@@ -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();
}

Back to the top