creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1548860 - /creadur/rat/branches/gsoc/apache-rat-tasks/src/test/java/org/example/Matcher.java
Date Sat, 07 Dec 2013 11:10:30 GMT
Author: rdonkin
Date: Sat Dec  7 11:10:29 2013
New Revision: 1548860

URL: http://svn.apache.org/r1548860
Log:
Update tasks to reflect new approach to license families

Modified:
    creadur/rat/branches/gsoc/apache-rat-tasks/src/test/java/org/example/Matcher.java

Modified: creadur/rat/branches/gsoc/apache-rat-tasks/src/test/java/org/example/Matcher.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-tasks/src/test/java/org/example/Matcher.java?rev=1548860&r1=1548859&r2=1548860&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-tasks/src/test/java/org/example/Matcher.java (original)
+++ creadur/rat/branches/gsoc/apache-rat-tasks/src/test/java/org/example/Matcher.java Sat
Dec  7 11:10:29 2013
@@ -19,17 +19,18 @@ package org.example;
 import org.apache.rat.analysis.IHeaderMatcher;
 import org.apache.rat.analysis.license.BaseLicense;
 import org.apache.rat.api.Document;
-import org.apache.rat.api.MetaData;
-
+import org.apache.rat.api.domain.LicenseFamilyBuilder;
 
 public class Matcher extends BaseLicense implements IHeaderMatcher {
     public Matcher() {
-        super(new MetaData.Datum(MetaData.RAT_URL_LICENSE_FAMILY_CATEGORY, "EXMPL"),
-                new MetaData.Datum(MetaData.RAT_URL_LICENSE_FAMILY_NAME, "Example License"),
"");
+        super(LicenseFamilyBuilder.aLicenseFamily().withName("Example License")
+                .withCategory("EXMPL").build());
+    }
+
+    public void reset() {
     }
-    public void reset() {}
-    
-    public boolean match(Document subject, String line) {
+
+    public boolean match(final Document subject, final String line) {
         reportOnLicense(subject);
         return true;
     }



Mime
View raw message