bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject [09/51] [abbrv] bval git commit: compare known classnames to full classname as pointed out privately by rmannibucau
Date Fri, 03 Nov 2017 22:27:34 GMT
compare known classnames to full classname as pointed out privately by rmannibucau


Project: http://git-wip-us.apache.org/repos/asf/bval/repo
Commit: http://git-wip-us.apache.org/repos/asf/bval/commit/b0d4ac1a
Tree: http://git-wip-us.apache.org/repos/asf/bval/tree/b0d4ac1a
Diff: http://git-wip-us.apache.org/repos/asf/bval/diff/b0d4ac1a

Branch: refs/heads/master
Commit: b0d4ac1abf49024bd05888134cbefccc5839ef4d
Parents: df741b5
Author: Matt Benson <mbenson@apache.org>
Authored: Wed Oct 19 22:40:19 2016 +0000
Committer: Matt Benson <mbenson@apache.org>
Committed: Wed Oct 19 22:40:19 2016 +0000

----------------------------------------------------------------------
 bval-jsr/src/main/java/org/apache/bval/jsr/util/Proxies.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bval/blob/b0d4ac1a/bval-jsr/src/main/java/org/apache/bval/jsr/util/Proxies.java
----------------------------------------------------------------------
diff --git a/bval-jsr/src/main/java/org/apache/bval/jsr/util/Proxies.java b/bval-jsr/src/main/java/org/apache/bval/jsr/util/Proxies.java
index 9df07a9..6b83035 100644
--- a/bval-jsr/src/main/java/org/apache/bval/jsr/util/Proxies.java
+++ b/bval-jsr/src/main/java/org/apache/bval/jsr/util/Proxies.java
@@ -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