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/08/14 01:49:08 UTC
httpcomponents-core git commit: Javadoc. Comment empty block.
Repository: httpcomponents-core
Updated Branches:
refs/heads/master 7f28ad2b8 -> 71dbc7476
Javadoc. Comment empty block.
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/71dbc747
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/71dbc747
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/71dbc747
Branch: refs/heads/master
Commit: 71dbc747643aefecbf052d29bb486106f8a77e5a
Parents: 7f28ad2
Author: Gary Gregory <ga...@gmail.com>
Authored: Mon Aug 13 19:49:04 2018 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Mon Aug 13 19:49:04 2018 -0600
----------------------------------------------------------------------
.../org/apache/hc/core5/http/io/entity/FileEntity.java | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/71dbc747/httpcore5/src/main/java/org/apache/hc/core5/http/io/entity/FileEntity.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/io/entity/FileEntity.java b/httpcore5/src/main/java/org/apache/hc/core5/http/io/entity/FileEntity.java
index 48f8b3d..6470c96 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/io/entity/FileEntity.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/io/entity/FileEntity.java
@@ -45,6 +45,11 @@ public class FileEntity extends AbstractHttpEntity {
private final File file;
/**
+ * Creates a new instance.
+ *
+ * @param file The file to serve.
+ * @param contentType The content type for the given {@code file}.
+ *
* @since 4.2
*/
public FileEntity(final File file, final ContentType contentType) {
@@ -56,6 +61,10 @@ public class FileEntity extends AbstractHttpEntity {
}
/**
+ * Creates a new instance.
+ *
+ * @param file The file to serve.
+ *
* @since 4.2
*/
public FileEntity(final File file) {
@@ -90,6 +99,7 @@ public class FileEntity extends AbstractHttpEntity {
@Override
public void close() throws IOException {
+ // do nothing
}
}