abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r557498 - /incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/license/LicenseHelper.java
Date Thu, 19 Jul 2007 06:12:08 GMT
Author: jmsnell
Date: Wed Jul 18 23:12:07 2007
New Revision: 557498

URL: http://svn.apache.org/viewvc?view=rev&rev=557498
Log:
Do not consider inherited licenses when adding licenses

Modified:
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/license/LicenseHelper.java

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/license/LicenseHelper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/license/LicenseHelper.java?view=diff&rev=557498&r1=557497&r2=557498
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/license/LicenseHelper.java
(original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/license/LicenseHelper.java
Wed Jul 18 23:12:07 2007
@@ -148,9 +148,9 @@
     String title,
     String hreflang) 
       throws MimeTypeParseException {
-    if (hasLicense(base, iri))
+    if (hasLicense(base, iri,false))
       throw new IllegalStateException("License '" + iri + "' has already been added");
-    if (hasUnspecifiedLicense(base))
+    if (hasUnspecifiedLicense(base,false))
       throw new IllegalStateException("Unspecified license already added");
     if (base instanceof Source) {
       return ((Source)base).addLink((new IRI(iri)).toString(), Link.REL_LICENSE, type, title,
hreflang, -1);



Mime
View raw message