From 182feb11a0fb742bfa7cc6cf4d407101006436b4 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" <6454655+adoroszlai@users.noreply.github.com> Date: Tue, 17 Sep 2024 12:25:57 +0200 Subject: [PATCH] HADOOP-19277. Files and directories mixed up in TreeScanResults#dump (#7047) --- .../java/org/apache/hadoop/fs/contract/ContractTestUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/ContractTestUtils.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/ContractTestUtils.java index 739640aa34..53594f4db8 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/ContractTestUtils.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/ContractTestUtils.java @@ -1922,10 +1922,10 @@ public String toString() { */ private String dump() { StringBuilder sb = new StringBuilder(toString()); - sb.append("\nFiles:"); + sb.append("\nDirectories:"); directories.forEach(p -> sb.append("\n \"").append(p.toString())); - sb.append("\nDirectories:"); + sb.append("\nFiles:"); files.forEach(p -> sb.append("\n \"").append(p.toString())); return sb.toString();