Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 15276 invoked from network); 1 Jun 2010 23:52:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jun 2010 23:52:04 -0000 Received: (qmail 7944 invoked by uid 500); 1 Jun 2010 23:52:04 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 7914 invoked by uid 500); 1 Jun 2010 23:52:04 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 7905 invoked by uid 99); 1 Jun 2010 23:52:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 23:52:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 23:52:02 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o51Npe2k025583 for ; Tue, 1 Jun 2010 23:51:40 GMT Message-ID: <21312797.118521275436300136.JavaMail.jira@thor> Date: Tue, 1 Jun 2010 19:51:40 -0400 (EDT) From: "Luke Lu (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6787) Factor out glob pattern code from FileContext and Filesystem In-Reply-To: <2758661.46911274829813581.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12874311#action_12874311 ] Luke Lu commented on HADOOP-6787: --------------------------------- Thanks for the +1! Most IDEs would indicate (in my case, with a green circle with I in it) an implementing method. Clicking or hovering on the indicator would show you the javadoc of the interface method. I personally prefer keeping the javadocs in interfaces/abstract classes and not duplicating them in implementing classes. I hope that it's not a bug in Hudson's javadoc tool to +1 my patch as well :) > Factor out glob pattern code from FileContext and Filesystem > ------------------------------------------------------------ > > Key: HADOOP-6787 > URL: https://issues.apache.org/jira/browse/HADOOP-6787 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Luke Lu > Assignee: Luke Lu > Fix For: 0.22.0 > > Attachments: hadoop-6787-trunk-v1.patch, hadoop-6787-y20s-v1.patch > > > The GlobFilter class (especially the error-prone setRegex method) is duplicated in both FileContext and Filesystem. And I'd like to be able to reuse the most of the setRegex code for glob pattern matching in metrics filter configurations. > We could at least factor out the hairy setRegex code and package them into a GlobPattern class with a minimum compile method. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.