[tomcat] branch master updated: Use available constant

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: Use available constant

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

remm 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 16d4beb  Use available constant
16d4beb is described below

commit 16d4bebe84550bfd934895796aad780b7a6a0241
Author: remm <[hidden email]>
AuthorDate: Thu Feb 18 09:56:42 2021 +0100

    Use available constant
---
 java/org/apache/catalina/loader/WebappClassLoaderBase.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/loader/WebappClassLoaderBase.java b/java/org/apache/catalina/loader/WebappClassLoaderBase.java
index d809c3e..ffd9f25 100644
--- a/java/org/apache/catalina/loader/WebappClassLoaderBase.java
+++ b/java/org/apache/catalina/loader/WebappClassLoaderBase.java
@@ -1139,7 +1139,7 @@ public abstract class WebappClassLoaderBase extends URLClassLoader
         if (resource.exists()) {
             stream = resource.getInputStream();
             // Filter out .class resources through the ClassFileTranformer
-            if (name.endsWith(".class") && transformers.size() > 0) {
+            if (name.endsWith(CLASS_FILE_SUFFIX) && transformers.size() > 0) {
                 // If the resource is a class, decorate it with any attached transformers
                 ByteArrayOutputStream baos = new ByteArrayOutputStream();
                 byte[] buf = new byte[8192];


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