You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2018/07/22 21:30:21 UTC
httpcomponents-core git commit: Comments and supress compiler warning.
Repository: httpcomponents-core
Updated Branches:
refs/heads/master e6fcfd3db -> 65fa4f597
Comments and supress compiler warning.
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/65fa4f59
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/65fa4f59
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/65fa4f59
Branch: refs/heads/master
Commit: 65fa4f597f75054316291e6b3d739a099713ffb5
Parents: e6fcfd3
Author: Gary Gregory <ga...@gmail.com>
Authored: Sun Jul 22 15:30:18 2018 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Sun Jul 22 15:30:18 2018 -0600
----------------------------------------------------------------------
.../org/apache/hc/core5/http/nio/entity/FileEntityProducer.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/65fa4f59/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/FileEntityProducer.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/FileEntityProducer.java b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/FileEntityProducer.java
index da2337a..8bb93ac 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/FileEntityProducer.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/FileEntityProducer.java
@@ -143,11 +143,13 @@ public final class FileEntityProducer implements AsyncEntityProducer {
@Override
public void releaseResources() {
eof = false;
+ @SuppressWarnings("resource")
final RandomAccessFile accessFile = accessFileRef.getAndSet(null);
if (accessFile != null) {
try {
accessFile.close();
} catch (final IOException ignore) {
+ // ignore
}
}
}