code formatting

This commit is contained in:
Claudio Atzori 2020-05-08 16:01:09 +02:00
parent 3420998bb4
commit 8fd1952f16
1 changed files with 5 additions and 7 deletions

View File

@ -82,10 +82,9 @@ public class MigrateActionSet {
List<Path> targetPaths = new ArrayList<>(); List<Path> targetPaths = new ArrayList<>();
final List<Path> sourcePaths = getSourcePaths(sourceNN, isLookUp); final List<Path> sourcePaths = getSourcePaths(sourceNN, isLookUp);
log log.info("paths to process:\n{}", sourcePaths
.info( .stream().map(p -> p.toString()).collect(Collectors.joining("\n")));
"paths to process:\n{}",
sourcePaths.stream().map(p -> p.toString()).collect(Collectors.joining("\n")));
for (Path source : sourcePaths) { for (Path source : sourcePaths) {
if (!sourceFS.exists(source)) { if (!sourceFS.exists(source)) {
@ -119,9 +118,8 @@ public class MigrateActionSet {
} }
} }
props final String targetPathsCsv = targetPaths.stream().map(p -> p.toString()).collect(Collectors.joining(","));
.setProperty( props.setProperty(TARGET_PATHS, targetPathsCsv);
TARGET_PATHS, targetPaths.stream().map(p -> p.toString()).collect(Collectors.joining(",")));
File file = new File(System.getProperty("oozie.action.output.properties")); File file = new File(System.getProperty("oozie.action.output.properties"));
try (OutputStream os = new FileOutputStream(file)) { try (OutputStream os = new FileOutputStream(file)) {