You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/01/04 08:36:48 UTC
[tomcat] branch 9.0.x updated: Fix IDE warning (c1 must be null
here)
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new e52d378 Fix IDE warning (c1 must be null here)
e52d378 is described below
commit e52d378ab45748c7d3a7e5fca753b0c4bf0c3d79
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Jan 4 08:34:21 2021 +0000
Fix IDE warning (c1 must be null here)
---
java/org/apache/tomcat/util/compat/Jre16Compat.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/java/org/apache/tomcat/util/compat/Jre16Compat.java b/java/org/apache/tomcat/util/compat/Jre16Compat.java
index c142417..0b92c59 100644
--- a/java/org/apache/tomcat/util/compat/Jre16Compat.java
+++ b/java/org/apache/tomcat/util/compat/Jre16Compat.java
@@ -49,10 +49,8 @@ class Jre16Compat extends Jre9Compat {
m2 = c1.getMethod("of", String.class);
m3 = SocketChannel.class.getMethod("open", ProtocolFamily.class);
} catch (ClassNotFoundException e) {
- if (c1 == null) {
- // Must be pre-Java 16
- log.debug(sm.getString("jre16Compat.javaPre16"), e);
- }
+ // Must be pre-Java 16
+ log.debug(sm.getString("jre16Compat.javaPre16"), e);
} catch (ReflectiveOperationException | IllegalArgumentException e) {
// Should never happen
log.error(sm.getString("jre16Compat.unexpected"), e);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org