abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1175978 - in /abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates: Expression.java QueryContext.java
Date Mon, 26 Sep 2011 18:08:59 GMT
Author: jmsnell
Date: Mon Sep 26 18:08:59 2011
New Revision: 1175978

URL: http://svn.apache.org/viewvc?rev=1175978&view=rev
Log:
Minor fix

Modified:
    abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/Expression.java
    abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/QueryContext.java

Modified: abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/Expression.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/Expression.java?rev=1175978&r1=1175977&r2=1175978&view=diff
==============================================================================
--- abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/Expression.java
(original)
+++ abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/Expression.java
Mon Sep 26 18:08:59 2011
@@ -115,8 +115,8 @@ public class Expression 
           VarSpec spec = new VarSpec(vt.group(1),vt.group(2));
           varspecs.add(spec);
         } else {
-          throw new IllegalArgumentException(
-            "Invalid Expression: Invalid variable spec");
+          //throw new IllegalArgumentException(
+          //  "Invalid Expression: Invalid variable spec");
         }
       }
     } else {

Modified: abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/QueryContext.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/QueryContext.java?rev=1175978&r1=1175977&r2=1175978&view=diff
==============================================================================
--- abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/QueryContext.java
(original)
+++ abdera/abdera2/common/src/main/java/org/apache/abdera2/common/templates/QueryContext.java
Mon Sep 26 18:08:59 2011
@@ -146,7 +146,8 @@ public class QueryContext extends MapCon
   public static String baseFromQuery(String query) {
     IRI iri = new IRI(query);
     String s = iri.resolve(iri.getPath()).toString();
-    return s.equals(query) ? "" : s;
+    //return s.equals(query) ? "" : s;
+    return s;
   }
   
   public static String expandQuery(String query, Context context) {



Mime
View raw message