Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2008-03-10 00:32:24 +0000
committerSergey Prigogin2008-03-10 00:32:24 +0000
commit85cfa36e51590ea6a06184e89394dc2f25e61ba7 (patch)
tree1505c4b969bddd074405ea57daf9d56d6e3c2e0c /core/org.eclipse.cdt.core/parser
parentcf9f88cb446c019cadcfb7d0a3b3d67ea611ffcf (diff)
downloadorg.eclipse.cdt-85cfa36e51590ea6a06184e89394dc2f25e61ba7.tar.gz
org.eclipse.cdt-85cfa36e51590ea6a06184e89394dc2f25e61ba7.tar.xz
org.eclipse.cdt-85cfa36e51590ea6a06184e89394dc2f25e61ba7.zip
Minor fix in toString method.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/util/ObjectMap.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/util/ObjectMap.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/util/ObjectMap.java
index b91e7c2a951..fede1ece7e3 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/util/ObjectMap.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/util/ObjectMap.java
@@ -139,13 +139,11 @@ public class ObjectMap extends ObjectTable {
}
public String toString() {
- StringBuilder sb = new StringBuilder();
+ StringBuilder sb = new StringBuilder("{");
for (int i = 0; i < size(); i++) {
Object key = keyAt(i);
if (key != null) {
- if (sb.length() == 0) {
- sb.append("{");
- } else {
+ if (sb.length() > 1) {
sb.append(", ");
}
Object value = valueTable[i];

Back to the top