Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 25D98200C5C for ; Thu, 20 Apr 2017 23:18:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 24776160B9F; Thu, 20 Apr 2017 21:18:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6B30D160B90 for ; Thu, 20 Apr 2017 23:18:09 +0200 (CEST) Received: (qmail 15015 invoked by uid 500); 20 Apr 2017 21:18:08 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 15004 invoked by uid 99); 20 Apr 2017 21:18:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2017 21:18:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 081F5C18AA for ; Thu, 20 Apr 2017 21:18:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rXIC91Da_zJn for ; Thu, 20 Apr 2017 21:18:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 031995F1D5 for ; Thu, 20 Apr 2017 21:18:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 53B5AE05A2 for ; Thu, 20 Apr 2017 21:18:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0B35221B53 for ; Thu, 20 Apr 2017 21:18:04 +0000 (UTC) Date: Thu, 20 Apr 2017 21:18:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LANG-1317) Add findAnnotation and findMethodsWithAnnotation to MethodUtils MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 20 Apr 2017 21:18:10 -0000 [ https://issues.apache.org/jira/browse/LANG-1317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15977556#comment-15977556 ] ASF GitHub Bot commented on LANG-1317: -------------------------------------- Github user PascalSchumacher commented on a diff in the pull request: https://github.com/apache/commons-lang/pull/261#discussion_r112563123 --- Diff: src/main/java/org/apache/commons/lang3/ClassUtils.java --- @@ -457,6 +457,44 @@ public static String getAbbreviatedName(final String className, final int len) { } /** + *

Gets a combination of {@link #getAllSuperclasses}(Class)} and + * {@link #getAllInterfaces}(Class)}, one from superclasses, one + * from interfaces, and so on in a breadth first way.

+ * + * @param cls the class to look up, may be {@code null} + * @return the {@code List} of superclasses in order going up from this one --- End diff -- This should also mention Interfaces. Can you add a since tag to this method? Thanks! > Add findAnnotation and findMethodsWithAnnotation to MethodUtils > --------------------------------------------------------------- > > Key: LANG-1317 > URL: https://issues.apache.org/jira/browse/LANG-1317 > Project: Commons Lang > Issue Type: Improvement > Components: lang.reflect.* > Reporter: Yasser Zamani > Labels: patch > > In order to fix WW-4744 , mainly, I am going to add two functionalities to MethodUtils: findAnnotation and findMethodsWithAnnotation. > findAnnotation will be an extension for Method.getAnnotation that also searches interfaces and super classes while caching results with no memory leak. > findMethodsWithAnnotation will be an extension for getMethodsWithAnnotation that also supports non public methods, super class and interface methods, again, while caching results as above. > Generally, do you agree with these in a pull request? If so, I will be working on it :) -- This message was sent by Atlassian JIRA (v6.3.15#6346)