HADOOP-11661. Deprecate FileUtil#copyMerge. Contributed by Brahma Reddy Battula.
(cherry picked from commita8d8b80a20
) (cherry picked from commit80d122d7fe
)
This commit is contained in:
parent
dc78250aa4
commit
7887fab815
|
@ -381,6 +381,7 @@ public class FileUtil {
|
|||
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
/** Copy all files in a directory to one output file (merge). */
|
||||
public static boolean copyMerge(FileSystem srcFS, Path srcDir,
|
||||
FileSystem dstFS, Path dstFile,
|
||||
|
|
|
@ -559,6 +559,7 @@ public class TestFileUtil {
|
|||
* @return boolean true if the call to FileUtil.copyMerge was successful.
|
||||
* @throws IOException if an I/O error occurs.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
private boolean copyMerge(String src, String dst)
|
||||
throws IOException {
|
||||
Configuration conf = new Configuration();
|
||||
|
|
Loading…
Reference in New Issue