[tomcat-jakartaee-migration] branch master updated: Better toString

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

[tomcat-jakartaee-migration] branch master updated: Better toString

Rémy Maucherat
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-jakartaee-migration.git


The following commit(s) were added to refs/heads/master by this push:
     new f5c9fc9  Better toString
f5c9fc9 is described below

commit f5c9fc9df35439202c7a288d40e7b3b795ef0379
Author: remm <[hidden email]>
AuthorDate: Thu Feb 18 23:28:45 2021 +0100

    Better toString
   
    This is used by logging in Tomcat in addTransformer, so the profile used
    is shown.
---
 src/main/java/org/apache/tomcat/jakartaee/ClassConverter.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/main/java/org/apache/tomcat/jakartaee/ClassConverter.java b/src/main/java/org/apache/tomcat/jakartaee/ClassConverter.java
index ca536fb..d3fbaae 100644
--- a/src/main/java/org/apache/tomcat/jakartaee/ClassConverter.java
+++ b/src/main/java/org/apache/tomcat/jakartaee/ClassConverter.java
@@ -46,6 +46,11 @@ public class ClassConverter implements Converter, ClassFileTransformer {
     }
 
     @Override
+    public String toString() {
+        return ClassConverter.class.getCanonicalName() + '[' + profile.toString() + ']';
+    }
+
+    @Override
     public boolean accepts(String filename) {
         String extension = Util.getExtension(filename);
         return "class".equals(extension);


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