diff --git a/.travis.yml b/.travis.yml
index 5b8836e2..e33df5c1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,5 +15,5 @@ install: echo "No need to run mvn install -DskipTests then mvn install. Running
script: mvn install
after_success:
- - test -z "$BUILD_COVERAGE" || mvn clean test jacoco:report coveralls:report
+ - test -z "$BUILD_COVERAGE" || mvn clean test -Pclover.report coveralls:report
diff --git a/pom.xml b/pom.xml
index 0202977e..145280ed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,6 +73,7 @@
4.12
1.6.6
2.19.1
+ 4.2.0
@@ -269,24 +270,6 @@
-
- org.jacoco
- jacoco-maven-plugin
- 0.7.9
-
-
- **/io/jsonwebtoken/lang/*
-
-
-
-
- prepare-agent
-
- prepare-agent
-
-
-
-
org.apache.maven.plugins
maven-release-plugin
@@ -403,5 +386,45 @@
+
+ clover.report
+
+
+
+ org.openclover
+ clover-maven-plugin
+ ${clover.version}
+
+
+ **/*Test*
+ **/*IT*
+
+ io/jsonwebtoken/lang/*
+
+
+
+
+ clover
+ verify
+
+ instrument
+ check
+ clover
+
+
+
+
+
+
+
+
+
+ org.openclover
+ clover-maven-plugin
+ ${clover.version}
+
+
+
+
diff --git a/src/main/java/io/jsonwebtoken/impl/compression/GzipCompressionCodec.java b/src/main/java/io/jsonwebtoken/impl/compression/GzipCompressionCodec.java
index 19bf7e20..0355a76a 100644
--- a/src/main/java/io/jsonwebtoken/impl/compression/GzipCompressionCodec.java
+++ b/src/main/java/io/jsonwebtoken/impl/compression/GzipCompressionCodec.java
@@ -50,9 +50,10 @@ public class GzipCompressionCodec extends AbstractCompressionCodec implements Co
inputStream = new ByteArrayInputStream(compressed);
gzipInputStream = new GZIPInputStream(inputStream);
outputStream = new ByteArrayOutputStream();
- int read;
- while ((read = gzipInputStream.read(buffer)) != -1) {
+ int read = gzipInputStream.read(buffer);
+ while (read != -1) {
outputStream.write(buffer, 0, read);
+ read = gzipInputStream.read(buffer);
}
return outputStream.toByteArray();
} finally {