[tomcat-jakartaee-migration] branch master updated: Simplify

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: Simplify

markt
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-jakartaee-migration.git


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

commit ea1619cd9190d2741937879da161637fee5feebc
Author: Mark Thomas <[hidden email]>
AuthorDate: Wed Feb 17 12:24:48 2021 +0000

    Simplify
---
 src/main/java/org/apache/tomcat/jakartaee/ClassConverter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/tomcat/jakartaee/ClassConverter.java b/src/main/java/org/apache/tomcat/jakartaee/ClassConverter.java
index bc36b28..ca536fb 100644
--- a/src/main/java/org/apache/tomcat/jakartaee/ClassConverter.java
+++ b/src/main/java/org/apache/tomcat/jakartaee/ClassConverter.java
@@ -70,7 +70,7 @@ public class ClassConverter implements Converter, ClassFileTransformer {
                 String newString = profile.convert(str);
                 // Object comparison is deliberate
                 if (newString != str) {
-                    c = new ConstantUtf8(profile.convert(str));
+                    c = new ConstantUtf8(newString);
                     constantPool[i] = c;
                     converted = true;
                 }


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