abdera-commits mailing list archives

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

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

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=557497&r1=557496&r2=557497
==============================================================================
--- 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:11:25 2007
@@ -111,9 +111,9 @@
   
   public static Link addUnspecifiedLicense(
     Base base) {
-      if (hasUnspecifiedLicense(base)) 
+      if (hasUnspecifiedLicense(base,false)) 
         throw new IllegalStateException("Unspecified license already added");
-      if (hasLicense(base)) 
+      if (hasLicense(base,false)) 
         throw new IllegalStateException("Other licenses are already added.");
       return addLicense(base, UNSPECIFIED_LICENSE);
   }



Mime
View raw message