You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2021/09/20 17:07:50 UTC
[commons-statistics] 02/13: Append single characters using a char
not a string
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-statistics.git
commit d9a569aab192fad1a48f7394e53ca5d8a05099f3
Author: aherbert <ah...@apache.org>
AuthorDate: Mon Sep 20 12:09:46 2021 +0100
Append single characters using a char not a string
---
.../java/org/apache/commons/statistics/distribution/TestUtils.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/TestUtils.java b/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/TestUtils.java
index 1e84c83..ca6dfc3 100644
--- a/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/TestUtils.java
+++ b/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/TestUtils.java
@@ -159,15 +159,15 @@ final class TestUtils {
msgBuffer.append("value\texpected\tobserved\n");
for (int i = 0; i < expected.length; i++) {
msgBuffer.append(valueLabels[i]);
- msgBuffer.append("\t");
+ msgBuffer.append('\t');
msgBuffer.append(df.format(expected[i]));
msgBuffer.append("\t\t");
msgBuffer.append(observed[i]);
- msgBuffer.append("\n");
+ msgBuffer.append('\n');
}
msgBuffer.append("This test can fail randomly due to sampling error with probability ");
msgBuffer.append(alpha);
- msgBuffer.append(".");
+ msgBuffer.append('.');
Assertions.fail(msgBuffer.toString());
}
}