This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new a1fd31d fix wrong usage of assertNotNull (#269)
a1fd31d is described below
commit a1fd31d3350350b54dcf4b6e35bcd19c0b2527d7
Author: Davide Angelocola <[email protected]>
AuthorDate: Fri Sep 3 18:04:26 2021 +0200
fix wrong usage of assertNotNull (#269)
Signature of assertNoNull() is taking "actual" as first parameter:
public static void assertNotNull(Object actual, String message) {
AssertNotNull.assertNotNull(actual, message);
}
Signed-off-by: Davide Angelocola <[email protected]>
---
src/test/java/org/apache/commons/io/FileSystemUtilsTestCase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/io/FileSystemUtilsTestCase.java
b/src/test/java/org/apache/commons/io/FileSystemUtilsTestCase.java
index f868a2c..23681e2 100644
--- a/src/test/java/org/apache/commons/io/FileSystemUtilsTestCase.java
+++ b/src/test/java/org/apache/commons/io/FileSystemUtilsTestCase.java
@@ -63,7 +63,7 @@ public class FileSystemUtilsTestCase {
boolean kilobyteBlock = true;
try (BufferedReader r = new BufferedReader(new
InputStreamReader(proc.getInputStream()))){
final String line = r.readLine();
- assertNotNull("Unexpected null line", line);
+ assertNotNull(line, "Unexpected null line");
if (line.contains("512")) {
kilobyteBlock = false;
}