You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by jm...@apache.org on 2007/07/19 08:12:08 UTC
svn commit: r557498 -
/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/license/LicenseHelper.java
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);