NIFI-2928: Fixed checkstyle violation in FetchFile

This closes #1180

Signed-off-by: Bryan Rosander <brosander@apache.org>
This commit is contained in:
Matt Burgess 2016-11-03 14:20:13 -04:00 committed by Bryan Rosander
parent b7c6392183
commit 0841f14c18
No known key found for this signature in database
GPG Key ID: 2065F38F3FF65D23
1 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,8 @@ public class FetchFile extends AbstractProcessor {
// Verify that file system is reachable and file exists
Path filePath = file.toPath();
if (!Files.exists(filePath) && !Files.notExists(filePath)){ // see https://docs.oracle.com/javase/tutorial/essential/io/check.html for more details
getLogger().log(levelFileNotFound, "Could not fetch file {} from file system for {} because the existence of the file cannot be verified; routing to failure", new Object[] {file, flowFile});
getLogger().log(levelFileNotFound, "Could not fetch file {} from file system for {} because the existence of the file cannot be verified; routing to failure",
new Object[] {file, flowFile});
session.transfer(session.penalize(flowFile), REL_FAILURE);
return;
} else if (!Files.exists(filePath)) {