[tomcat] branch master updated: Remove unnecessary cast. Fix IDE warning.

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[tomcat] branch master updated: Remove unnecessary cast. Fix IDE warning.

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git

The following commit(s) were added to refs/heads/master by this push:
     new 4b8b9b1  Remove unnecessary cast. Fix IDE warning.
4b8b9b1 is described below

commit 4b8b9b1219e5c112dfc599fcc72104cfe88bfdde
Author: Mark Thomas <[hidden email]>
AuthorDate: Fri Feb 19 12:13:14 2021 +0000

    Remove unnecessary cast. Fix IDE warning.
 java/org/apache/catalina/loader/WebappLoader.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/java/org/apache/catalina/loader/WebappLoader.java b/java/org/apache/catalina/loader/WebappLoader.java
index 7e1405a..a7d8693 100644
--- a/java/org/apache/catalina/loader/WebappLoader.java
+++ b/java/org/apache/catalina/loader/WebappLoader.java
@@ -371,8 +371,7 @@ public class WebappLoader extends LifecycleMBeanBase implements Loader{
                 try {
                     EESpecProfile profile = EESpecProfile.valueOf(getJakartaConverter());
                     // FIXME: transformer = new ClassConverter(profile); after 0.2
-                    transformer =
-                            (ClassFileTransformer) ClassConverter.class.getConstructor(EESpecProfile.class).newInstance(profile);
+                    transformer = ClassConverter.class.getConstructor(EESpecProfile.class).newInstance(profile);
                 } catch (InvocationTargetException | NoSuchMethodException | IllegalArgumentException ignored) {
                     // Use default value with no argument constructor
                     transformer = new ClassConverter();

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]