Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-07-04 11:47:29 -0400
committerLars Vogel2019-07-05 02:39:51 -0400
commit60b189fe68c05a101f8c9f16dcb863e7e6717b6b (patch)
tree256b661d3537d4dba80a690eab9f016ecf9fd07e
parenteb399de7e2607d92533e1f9e7aaacdb5723cedd5 (diff)
downloadeclipse.platform.text-60b189fe68c05a101f8c9f16dcb863e7e6717b6b.tar.gz
eclipse.platform.text-60b189fe68c05a101f8c9f16dcb863e7e6717b6b.tar.xz
eclipse.platform.text-60b189fe68c05a101f8c9f16dcb863e7e6717b6b.zip
Removes unnecessary toString calls and uses append in
FileBufferFunctions Change-Id: I66831de205c78fc4234d9a05e643d55e1cb9989d Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferFunctions.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferFunctions.java b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferFunctions.java
index 9b1e54ec7..9219d2e71 100644
--- a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferFunctions.java
+++ b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferFunctions.java
@@ -114,13 +114,13 @@ public abstract class FileBufferFunctions {
@Override
protected void failed(Throwable e, Description description) {
- IStatus status= new Status(IStatus.ERROR, BUNDLE_ID, "FAIL in " + description.toString(), e);
+ IStatus status= new Status(IStatus.ERROR, BUNDLE_ID, "FAIL in " + description, e);
log.log(status);
}
@Override
protected void succeeded(Description description) {
- IStatus status= new Status(IStatus.INFO, BUNDLE_ID, "PASS in " + description.toString());
+ IStatus status= new Status(IStatus.INFO, BUNDLE_ID, "PASS in " + description);
log.log(status);
}
}
@@ -895,15 +895,15 @@ public abstract class FileBufferFunctions {
if (newLocation != null) {
if (listener.count != 1 || listener.buffer != fileBuffer || !newLocation.equals(listener.newLocation)) {
StringBuilder buf= new StringBuilder();
- buf.append("Wrong listener notifcation in " + getClass().getName() + ":\n");
- buf.append("listener.count: " + listener.count + " (expected: 1)\n");
+ buf.append("Wrong listener notifcation in ").append(getClass().getName()).append(":\n");
+ buf.append("listener.count: ").append(listener.count).append(" (expected: 1)\n");
if (newLocation.equals(listener.newLocation))
buf.append("newLocation identical: true\n");
else {
- buf.append("listener.newLocation: " + listener.newLocation + "\n");
- buf.append("newLocation: " + newLocation + "\n");
+ buf.append("listener.newLocation: ").append(listener.newLocation).append("\n");
+ buf.append("newLocation: ").append(newLocation).append("\n");
}
- buf.append("buffers identical: " + Boolean.valueOf(listener.buffer == fileBuffer));
+ buf.append("buffers identical: ").append(listener.buffer == fileBuffer);
fail(buf.toString());
}
}

Back to the top