commit | 29ca0884ad59de32076607bd97d1858ab1a484e6 | [log] [tgz] |
---|---|---|
author | Henri Biestro <henrib@apache.org> | Mon Jan 22 12:24:16 2018 +0000 |
committer | Henri Biestro <henrib@apache.org> | Mon Jan 22 12:24:16 2018 +0000 |
tree | b1aa516dc45b2e7c23caf03b9698f856ae1142d1 | |
parent | d95dc225851f26dcb65b5fc4e5ec86e662afcc36 [diff] |
JEXL-246: Quiesced down logging, was missing check on actual signature diff git-svn-id: https://svn.apache.org/repos/asf/commons/proper/jexl/trunk@1821853 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/commons/jexl3/internal/introspection/ClassMap.java b/src/main/java/org/apache/commons/jexl3/internal/introspection/ClassMap.java index 7871fa7..dd91c89 100644 --- a/src/main/java/org/apache/commons/jexl3/internal/introspection/ClassMap.java +++ b/src/main/java/org/apache/commons/jexl3/internal/introspection/ClassMap.java
@@ -285,9 +285,9 @@ // add method to byKey cache; do not override MethodKey key = new MethodKey(mi); Method pmi = cache.byKey.putIfAbsent(key, mi); - if (pmi != null && log.isDebugEnabled()) { + if (pmi != null && log.isDebugEnabled() && !key.equals(new MethodKey(pmi))) { // foo(int) and foo(Integer) have the same signature for JEXL - log.debug("Method "+ pmi + " is already registered, key: " + key); + log.debug("Method "+ pmi + " is already registered, key: " + key.debugString()); } } }