Return-Path: X-Original-To: apmail-creadur-commits-archive@www.apache.org Delivered-To: apmail-creadur-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4EB8107F9 for ; Fri, 6 Dec 2013 17:43:52 +0000 (UTC) Received: (qmail 1670 invoked by uid 500); 6 Dec 2013 17:43:52 -0000 Delivered-To: apmail-creadur-commits-archive@creadur.apache.org Received: (qmail 1636 invoked by uid 500); 6 Dec 2013 17:43:52 -0000 Mailing-List: contact commits-help@creadur.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@creadur.apache.org Delivered-To: mailing list commits@creadur.apache.org Received: (qmail 1629 invoked by uid 99); 6 Dec 2013 17:43:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 17:43:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 17:43:49 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D4F1E23889CB; Fri, 6 Dec 2013 17:43:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1548608 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/AppliedApacheSoftwareLicense20.java Date: Fri, 06 Dec 2013 17:43:28 -0000 To: commits@creadur.apache.org From: rdonkin@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131206174328.D4F1E23889CB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rdonkin Date: Fri Dec 6 17:43:28 2013 New Revision: 1548608 URL: http://svn.apache.org/r1548608 Log: Add java doc. Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/AppliedApacheSoftwareLicense20.java Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/AppliedApacheSoftwareLicense20.java URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/AppliedApacheSoftwareLicense20.java?rev=1548608&r1=1548607&r2=1548608&view=diff ============================================================================== --- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/AppliedApacheSoftwareLicense20.java (original) +++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/AppliedApacheSoftwareLicense20.java Fri Dec 6 17:43:28 2013 @@ -31,6 +31,7 @@ import org.apache.rat.api.MetaData; */ public class AppliedApacheSoftwareLicense20 extends CopyrightHeader { + /** The Constant ASL20_LICENSE_DEFN. */ public static final String ASL20_LICENSE_DEFN = "Licensed under the Apache License, Version 2.0 (the \"License\");\n" + "you may not use this file except in compliance with the License.\n" + "You may obtain a copy of the License at\n" @@ -41,8 +42,12 @@ public class AppliedApacheSoftwareLicens + "See the License for the specific language governing permissions and\n" + "limitations under the License.\n"; + /** The text matcher. */ private final FullTextMatchingLicense textMatcher; + /** + * Instantiates a new applied apache software license20. + */ public AppliedApacheSoftwareLicense20() { super( MetaData.RAT_LICENSE_FAMILY_CATEGORY_DATUM_ASL, @@ -54,23 +59,41 @@ public class AppliedApacheSoftwareLicens "", ASL20_LICENSE_DEFN); } + /** + * Instantiates a new applied apache software license20. + * + * @param copyrightOwner + * the copyright owner + */ public AppliedApacheSoftwareLicense20(String copyrightOwner) { this(); setCopyrightOwner(copyrightOwner); } + /* + * (non-Javadoc) + * + * @see + * org.apache.rat.analysis.license.CopyrightHeader#match(org.apache.rat. + * api.Document, java.lang.String) + */ @Override public boolean match(Document subject, String s) { boolean result = false; if (isCopyrightMatch()) { - return textMatcher.match(subject, s); // will report the match if it - // has occurred + // will report the match if it has occurred + return textMatcher.match(subject, s); } else { matchCopyright(s); } return result; } + /* + * (non-Javadoc) + * + * @see org.apache.rat.analysis.license.CopyrightHeader#reset() + */ @Override public void reset() { super.reset();