Skip to content

Commit 60ba59e

Browse files
committed
Java doc of GzipUtil improved, remove unnucessary vars in build.gradle.
1 parent 63dab43 commit 60ba59e

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ description = "A Logstash plugin uploads events to Amazon Simple Storage Service
1313
sourceCompatibility = 1.8
1414
targetCompatibility = 1.8
1515

16-
String jacksonVersion = '2.9.10'
17-
String jacksonDatabindVersion = '2.9.10.8'
18-
1916
repositories {
2017
mavenCentral()
2118
}

src/main/java/org/logstash/plugins/outputs/s3/GzipUtil.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class GzipUtil {
2727
* Compresses a given non-compressed source file into compressed target file.
2828
* @param sourcePath a path where source is located
2929
* @param targetPath a path where target can be placed
30-
* Note: raises an IO exception if any break happens.
30+
* Note: logs an IO exception if any break happens.
3131
*/
3232
public static void compress(String sourcePath, String targetPath) {
3333
try {
@@ -41,13 +41,13 @@ public static void compress(String sourcePath, String targetPath) {
4141
* Decompresses and recovers corrupted GZIP file into target file.
4242
* @param sourcePath a path where corrupted GZIP is located
4343
* @param targetPath a path where target can be placed
44-
* Note: raises an IO exception other than GZIP dead blocks.
44+
* Note: logs an IO exception other than GZIP dead blocks.
4545
*/
4646
public static void recover(String sourcePath, String targetPath) {
4747
try {
4848
GzipUtil.decompress(Paths.get(sourcePath), Paths.get(targetPath));
4949
} catch (IOException exception) {
50-
// raise an exception if expected exception is not end of ZLIB related.
50+
// log an exception if expected exception is not end of ZLIB related.
5151
if (CORRUPTED_FILE_ERROR.equals(exception.getMessage()) == false) {
5252
logger.error("Error occurred while compressing the file, error={}", exception.getMessage());
5353
} else {
@@ -60,7 +60,7 @@ public static void recover(String sourcePath, String targetPath) {
6060
* Decompresses a given compressed source file into target file.
6161
* @param sourcePath a path where compressed source is located
6262
* @param targetPath a path where target can be placed
63-
* Note: raises an IO exception if any break happens.
63+
* Note: logs an IO exception if any break happens.
6464
*/
6565
public static void decompress(String sourcePath, String targetPath) {
6666
try {

0 commit comments

Comments
 (0)