From 57e78bf723c0f1ddb642475e0b16cdf52c8ee1fd Mon Sep 17 00:00:00 2001 From: joewitt Date: Tue, 28 Apr 2015 15:31:27 -0400 Subject: [PATCH] NIFI-526 addressed the two checkstyle findings. Curious how they got in there --- .../java/org/apache/nifi/processors/standard/GetHTTP.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GetHTTP.java b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GetHTTP.java index a1f57dab24..db32e30d39 100644 --- a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GetHTTP.java +++ b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GetHTTP.java @@ -435,7 +435,7 @@ public class GetHTTP extends AbstractSessionFactoryProcessor { readLock.unlock(); writeLock.lock(); try { - if (timeToPersist < System.currentTimeMillis()) { + if (timeToPersist < System.currentTimeMillis()) { timeToPersist = System.currentTimeMillis() + PERSISTENCE_INTERVAL_MSEC; File httpCache = new File(HTTP_CACHE_FILE_PREFIX + getIdentifier()); try (FileOutputStream fos = new FileOutputStream(httpCache)) { @@ -447,8 +447,7 @@ public class GetHTTP extends AbstractSessionFactoryProcessor { getLogger().error("Failed to persist ETag and LastMod due to " + e, e); } } - } - finally { + } finally { readLock.lock(); writeLock.unlock(); }