Skip to content

Commit e41f2ba

Browse files
authored
HADOOP-19392: Upgrade ftpserver to resolve maven/pom issue (#7311) Contributed by YanivKunda.
Reviewed-by: Chris Nauroth <[email protected]> Signed-off-by: Shilun Fan <[email protected]>
1 parent 0432761 commit e41f2ba

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/ftp/TestFTPFileSystem.java

+1-7
Original file line numberDiff line numberDiff line change
@@ -245,16 +245,10 @@ private static void touch(FileSystem fs, Path filePath)
245245

246246
private static void touch(FileSystem fs, Path path, byte[] data)
247247
throws IOException {
248-
FSDataOutputStream out = null;
249-
try {
250-
out = fs.create(path);
248+
try (FSDataOutputStream out = fs.create(path)) {
251249
if (data != null) {
252250
out.write(data);
253251
}
254-
} finally {
255-
if (out != null) {
256-
out.close();
257-
}
258252
}
259253
}
260254

hadoop-project/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1131,12 +1131,12 @@
11311131
<dependency>
11321132
<groupId>org.apache.ftpserver</groupId>
11331133
<artifactId>ftplet-api</artifactId>
1134-
<version>1.0.0</version>
1134+
<version>1.2.0</version>
11351135
</dependency>
11361136
<dependency>
11371137
<groupId>org.apache.ftpserver</groupId>
11381138
<artifactId>ftpserver-core</artifactId>
1139-
<version>1.0.0</version>
1139+
<version>1.2.0</version>
11401140
</dependency>
11411141
<dependency>
11421142
<groupId>org.apache.ftpserver</groupId>

0 commit comments

Comments
 (0)