diff options
author | Carsten Hammer | 2019-08-26 19:03:53 +0000 |
---|---|---|
committer | Karsten Thoms | 2019-09-16 14:58:03 +0000 |
commit | 80d6f10e2d6dbe2abe5c9e74c5888a466ec3f18f (patch) | |
tree | de546da3b99b3061c6686c8af679a860c5c5f6df /org.eclipse.ui.workbench.texteditor | |
parent | e3e7d2ec4094bef4e9ea0cc5e733be3fff74fd9a (diff) | |
download | eclipse.platform.text-80d6f10e2d6dbe2abe5c9e74c5888a466ec3f18f.tar.gz eclipse.platform.text-80d6f10e2d6dbe2abe5c9e74c5888a466ec3f18f.tar.xz eclipse.platform.text-80d6f10e2d6dbe2abe5c9e74c5888a466ec3f18f.zip |
toString() on array
toString() implementation for arrays does not convert array contents to
String, rather it will print array's type and hash code (defined as
identity hash code). To get string representation of contents of the
array, the array could be for example wrapped into Arrays.asList(), as
Collections produce content representation in their toString().
Change-Id: Ic771aaaf978d7c943a087994a667e7b4bb5e46c3
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor')
-rw-r--r-- | org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java index 594ca647183..dc8cdcc9d55 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java @@ -902,7 +902,7 @@ public class DocumentLineDiffer implements ILineDiffer, IDocumentListener, IAnno */ private void reinitOnError(Exception e) { if (DEBUG) - System.err.println("reinitializing quickdiff:\n" + e.getLocalizedMessage() + "\n" + e.getStackTrace()); //$NON-NLS-1$//$NON-NLS-2$ + System.err.println("reinitializing quickdiff:\n" + e.getLocalizedMessage() + "\n" + Arrays.toString(e.getStackTrace())); //$NON-NLS-1$//$NON-NLS-2$ initialize(); } |