creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pottlin...@apache.org
Subject svn commit: r1612959 - /creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/LicenseAddingReport.java
Date Wed, 23 Jul 2014 22:03:25 GMT
Author: pottlinger
Date: Wed Jul 23 22:03:25 2014
New Revision: 1612959

URL: http://svn.apache.org/r1612959
Log:
RAT-148:
Integrated patch from Chris A. Mattmann, added inlining of MetaData extraction.

Modified:
    creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/LicenseAddingReport.java

Modified: creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/LicenseAddingReport.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/LicenseAddingReport.java?rev=1612959&r1=1612958&r2=1612959&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/LicenseAddingReport.java
(original)
+++ creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/LicenseAddingReport.java
Wed Jul 23 22:03:25 2014
@@ -39,8 +39,7 @@ public class LicenseAddingReport extends
 
     @Override
     public void report(org.apache.rat.api.Document document) throws RatException {
-        final MetaData metaData = document.getMetaData();
-        final Datum licenseHeader = metaData.get(MetaData.RAT_URL_HEADER_CATEGORY);
+        final Datum licenseHeader = document.getMetaData().get(MetaData.RAT_URL_HEADER_CATEGORY);
         if (licenseHeader == null
                 ||  MetaData.RAT_LICENSE_FAMILY_CATEGORY_DATUM_UNKNOWN.getValue().equals(licenseHeader.getValue()))
{
             final File file = new File(document.getName());
@@ -52,6 +51,5 @@ public class LicenseAddingReport extends
                 }
             }
         }
-        metaData.getData();
     }
 }



Mime
View raw message