bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1765729 - /bval/trunk/bval-jsr/src/main/java/org/apache/bval/jsr/util/Proxies.java
Date Wed, 19 Oct 2016 22:40:19 GMT
Author: mbenson
Date: Wed Oct 19 22:40:19 2016
New Revision: 1765729

URL: http://svn.apache.org/viewvc?rev=1765729&view=rev
Log:
compare known classnames to full classname as pointed out privately by rmannibucau

Modified:
    bval/trunk/bval-jsr/src/main/java/org/apache/bval/jsr/util/Proxies.java

Modified: bval/trunk/bval-jsr/src/main/java/org/apache/bval/jsr/util/Proxies.java
URL: http://svn.apache.org/viewvc/bval/trunk/bval-jsr/src/main/java/org/apache/bval/jsr/util/Proxies.java?rev=1765729&r1=1765728&r2=1765729&view=diff
==============================================================================
--- bval/trunk/bval-jsr/src/main/java/org/apache/bval/jsr/util/Proxies.java (original)
+++ bval/trunk/bval-jsr/src/main/java/org/apache/bval/jsr/util/Proxies.java Wed Oct 19 22:40:19
2016
@@ -43,11 +43,10 @@ public final class Proxies {
     }
 
     private static boolean isProxyClass(Class<?> clazz) {
-        final String simpleName = clazz.getSimpleName();
-        if (KNOWN_PROXY_CLASSNAMES.contains(simpleName)) {
+        if (KNOWN_PROXY_CLASSNAMES.contains(clazz.getName())) {
             return true;
         }
-        return simpleName.contains("$$");// a lot of proxies use this convention to avoid
conflicts with inner/anonymous classes
+        return clazz.getSimpleName().contains("$$");// a lot of proxies use this convention
to avoid conflicts with inner/anonymous classes
     }
 
     private Proxies() {



Mime
View raw message