This is an automated email from the ASF dual-hosted git repository. johnnyv pushed a commit to branch 2.2.X in repository https://gitbox.apache.org/repos/asf/mina.git
The following commit(s) were added to refs/heads/2.2.X by this push: new f38dde9 JDK8 Compatibility Fix f38dde9 is described below commit f38dde9ff18843c2eaae695dc76b823637c197a8 Author: Jonathan Valliere <john...@apache.org> AuthorDate: Wed Nov 17 21:07:54 2021 -0500 JDK8 Compatibility Fix Removes API element which does not exist in JDK8 --- .../src/main/java/org/apache/mina/filter/ssl/SSLHandlerG0.java | 3 +-- mina-core/src/test/resources/log4j.properties | 2 +- pom.xml | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mina-core/src/main/java/org/apache/mina/filter/ssl/SSLHandlerG0.java b/mina-core/src/main/java/org/apache/mina/filter/ssl/SSLHandlerG0.java index 4cf3e17..f6072d9 100644 --- a/mina-core/src/main/java/org/apache/mina/filter/ssl/SSLHandlerG0.java +++ b/mina-core/src/main/java/org/apache/mina/filter/ssl/SSLHandlerG0.java @@ -164,6 +164,7 @@ public class SSLHandlerG0 extends SSLHandler { * * @throws SSLException */ + @SuppressWarnings("incomplete-switch") protected void qreceive(final NextFilter next, final IoBuffer message) throws SSLException { if (LOGGER.isDebugEnabled()) { LOGGER.debug("{} qreceive() - source {}", toString(), message); @@ -191,7 +192,6 @@ public class SSLHandlerG0 extends SSLHandler { switch (result.getHandshakeStatus()) { case NEED_UNWRAP: - case NEED_UNWRAP_AGAIN: if (result.bytesConsumed() != 0 && message.hasRemaining()) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("{} qreceive() - handshake needs unwrap, looping", toString()); @@ -451,7 +451,6 @@ public class SSLHandlerG0 extends SSLHandler { switch (result.getHandshakeStatus()) { case NEED_UNWRAP: - case NEED_UNWRAP_AGAIN: if (LOGGER.isDebugEnabled()) { LOGGER.debug("{} lwrite() - handshake needs unwrap, invoking receive", toString()); } diff --git a/mina-core/src/test/resources/log4j.properties b/mina-core/src/test/resources/log4j.properties index b972832..1aa61ea 100644 --- a/mina-core/src/test/resources/log4j.properties +++ b/mina-core/src/test/resources/log4j.properties @@ -16,7 +16,7 @@ ############################################################################# # Please don't modify the log level until we reach to acceptable test coverage. # It's very useful when I test examples manually. -log4j.rootCategory=DEBUG, stdout +log4j.rootCategory=ERROR, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout diff --git a/pom.xml b/pom.xml index 3959e17..a641b35 100644 --- a/pom.xml +++ b/pom.xml @@ -460,10 +460,10 @@ <artifactId>maven-compiler-plugin</artifactId> <version>${version.compiler.plugin}</version> <configuration> - <source>1.7</source> - <target>1.7</target> + <source>1.8</source> + <target>1.8</target> <optimize>true</optimize> - <showDeprecations>true</showDeprecations> + <showDeprecation>true</showDeprecation> <encoding>ISO-8859-1</encoding> </configuration> </plugin>