summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-16 04:27:09 (EDT)
committerEike Stepper2007-10-16 04:27:09 (EDT)
commitfd1c450a19408528d288d9472cd49e0053d84359 (patch)
tree2faeb266cd47d88347c5131f23c5320f2bdec9a8
parent2f6daeba7bfde6e998bde52ecc557797adc09b9e (diff)
downloadcdo-fd1c450a19408528d288d9472cd49e0053d84359.zip
cdo-fd1c450a19408528d288d9472cd49e0053d84359.tar.gz
cdo-fd1c450a19408528d288d9472cd49e0053d84359.tar.bz2
[206224] Provide chat example
https://bugs.eclipse.org/bugs/show_bug.cgi?id=206224
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ReflectUtil.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ReflectUtil.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ReflectUtil.java
index e8deeed..f2e8a91 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ReflectUtil.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ReflectUtil.java
@@ -46,8 +46,6 @@ public final class ReflectUtil
public static final Object[] NO_ARGUMENTS = null;
- private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
-
private static final Method HASH_CODE_METHOD = lookupHashCodeMethod();
private static final Map<Object, Long> ids = new WeakHashMap<Object, Long>();
@@ -500,7 +498,7 @@ public final class ReflectUtil
StringBuilder builder = new StringBuilder();
builder.append(prefix);
builder.append(getLabel(object));
- builder.append(NL);
+ builder.append(StringUtil.NL);
toString(object.getClass(), object, prefix, builder);
return builder.toString();
}
@@ -547,18 +545,18 @@ public final class ReflectUtil
if (value instanceof Collection)
{
- builder.append(NL);
+ builder.append(StringUtil.NL);
for (Object element : (Collection<?>)value)
{
builder.append(" ");
builder.append(element);
- builder.append(NL);
+ builder.append(StringUtil.NL);
}
}
else
{
builder.append(value);
- builder.append(NL);
+ builder.append(StringUtil.NL);
}
}
}