You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by jo...@apache.org on 2015/04/28 21:31:37 UTC
incubator-nifi git commit: NIFI-526 addressed the two checkstyle
findings. Curious how they got in there
Repository: incubator-nifi
Updated Branches:
refs/heads/develop 8c006237e -> 57e78bf72
NIFI-526 addressed the two checkstyle findings. Curious how they got in there
Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/57e78bf7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/57e78bf7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/57e78bf7
Branch: refs/heads/develop
Commit: 57e78bf723c0f1ddb642475e0b16cdf52c8ee1fd
Parents: 8c00623
Author: joewitt <jo...@apache.org>
Authored: Tue Apr 28 15:31:27 2015 -0400
Committer: joewitt <jo...@apache.org>
Committed: Tue Apr 28 15:31:27 2015 -0400
----------------------------------------------------------------------
.../main/java/org/apache/nifi/processors/standard/GetHTTP.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/57e78bf7/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GetHTTP.java
----------------------------------------------------------------------
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 a1f57da..db32e30 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();
}