diff --git a/pom.xml b/pom.xml
index 4741748..9f18951 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,12 +16,12 @@ This is an extension module to enable Man-In-The-Middle impersonation for HTTPS.
github
false
- 4.0.36.Final
- 1.7.21
- 1.51
- 1.1.0
+ 4.0.54.Final
+ 1.7.25
+ 1.59
+ 1.1.2
4.12
- 1.0.0.1
+ 2.0.0.0
2.6
@@ -110,6 +110,11 @@ This is an extension module to enable Man-In-The-Middle impersonation for HTTPS.
slf4j-log4j12
${slf4j.version}
+
+ org.apache.commons
+ commons-io
+ 1.3.2
+
@@ -332,9 +337,9 @@ This is an extension module to enable Man-In-The-Middle impersonation for HTTPS.
- org.codehaus.mojo
- jxr-maven-plugin
- 2.3
+ org.apache.maven.plugins
+ maven-jxr-plugin
+ 2.5
diff --git a/src/test/java/de/ganskef/test/NettyClient_NoHttps.java b/src/test/java/de/ganskef/test/NettyClient_NoHttps.java
index b9cedfc..b9a8e5a 100644
--- a/src/test/java/de/ganskef/test/NettyClient_NoHttps.java
+++ b/src/test/java/de/ganskef/test/NettyClient_NoHttps.java
@@ -132,21 +132,20 @@ protected void channelRead0(ChannelHandlerContext ctx, HttpObject msg)
throws Exception {
if (msg instanceof HttpContent) {
HttpContent content = (HttpContent) msg;
- RandomAccessFile output = null;
- FileChannel oc = null;
- try {
- output = new RandomAccessFile(file, "rw");
- oc = output.getChannel();
+ try (
+ RandomAccessFile output = new RandomAccessFile(file, "rw");
+ FileChannel oc = output.getChannel()
+ )
+ {
oc.position(oc.size());
ByteBuf buffer = content.content();
- for (int i = 0, len = buffer.nioBufferCount(); i < len; i++) {
+ for (int i = 0, len = buffer.nioBufferCount(); i < len; i++)
+ {
oc.write(buffer.nioBuffers()[i]);
}
- } finally {
- IOUtils.closeQuietly(oc);
- IOUtils.closeQuietly(output);
}
- if (content instanceof LastHttpContent) {
+ if (content instanceof LastHttpContent)
+ {
ctx.close();
}
}