You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2019/05/29 08:14:52 UTC
[tomee] 02/05: Uses indexOf with chart instead of String
This is an automated email from the ASF dual-hosted git repository.
jlmonteiro pushed a commit to branch tomee-7.1.x
in repository https://gitbox.apache.org/repos/asf/tomee.git
commit f832e701ef901ba994838096980c2232429bcd0a
Author: Salomon Mayengue Mankong <Sa...@bottomline.com>
AuthorDate: Tue Feb 12 16:32:10 2019 +0100
Uses indexOf with chart instead of String
---
.../main/java/org/apache/openejb/util/proxy/LocalBeanProxyFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/util/proxy/LocalBeanProxyFactory.java b/container/openejb-core/src/main/java/org/apache/openejb/util/proxy/LocalBeanProxyFactory.java
index 053e4d4..68a9876 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/util/proxy/LocalBeanProxyFactory.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/util/proxy/LocalBeanProxyFactory.java
@@ -676,7 +676,7 @@ public class LocalBeanProxyFactory implements Opcodes {
String className = parameterType.getCanonicalName();
if (parameterType.isMemberClass()) {
- final int lastDot = className.lastIndexOf(".");
+ final int lastDot = className.lastIndexOf('.');
className = className.substring(0, lastDot) + "$" + className.substring(lastDot + 1);
}