lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r818896 - in /lucene/java/branches/lucene_2_9/contrib: misc/src/test/org/apache/lucene/queryParser/precedence/TestPrecedenceQueryParser.java regex/src/java/org/apache/lucene/search/regex/JavaUtilRegexCapabilities.java
Date Fri, 25 Sep 2009 16:00:27 GMT
Author: uschindler
Date: Fri Sep 25 16:00:26 2009
New Revision: 818896

URL: http://svn.apache.org/viewvc?rev=818896&view=rev
Log:
If we will have a 2.9.1 version, we should publish it with the 1.5 code from the contribs
removed (see java-dev discussion about compilation failures)

Modified:
    lucene/java/branches/lucene_2_9/contrib/misc/src/test/org/apache/lucene/queryParser/precedence/TestPrecedenceQueryParser.java
    lucene/java/branches/lucene_2_9/contrib/regex/src/java/org/apache/lucene/search/regex/JavaUtilRegexCapabilities.java

Modified: lucene/java/branches/lucene_2_9/contrib/misc/src/test/org/apache/lucene/queryParser/precedence/TestPrecedenceQueryParser.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/contrib/misc/src/test/org/apache/lucene/queryParser/precedence/TestPrecedenceQueryParser.java?rev=818896&r1=818895&r2=818896&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/contrib/misc/src/test/org/apache/lucene/queryParser/precedence/TestPrecedenceQueryParser.java
(original)
+++ lucene/java/branches/lucene_2_9/contrib/misc/src/test/org/apache/lucene/queryParser/precedence/TestPrecedenceQueryParser.java
Fri Sep 25 16:00:26 2009
@@ -371,7 +371,7 @@
   }
   
   private String escapeDateString(String s) {
-    if (s.contains(" ")) {
+    if (s.indexOf(' ')>=0) {
       return "\"" + s + "\"";
     } else {
       return s;

Modified: lucene/java/branches/lucene_2_9/contrib/regex/src/java/org/apache/lucene/search/regex/JavaUtilRegexCapabilities.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/contrib/regex/src/java/org/apache/lucene/search/regex/JavaUtilRegexCapabilities.java?rev=818896&r1=818895&r2=818896&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/contrib/regex/src/java/org/apache/lucene/search/regex/JavaUtilRegexCapabilities.java
(original)
+++ lucene/java/branches/lucene_2_9/contrib/regex/src/java/org/apache/lucene/search/regex/JavaUtilRegexCapabilities.java
Fri Sep 25 16:00:26 2009
@@ -37,7 +37,7 @@
   public static final int FLAG_CASE_INSENSITIVE = Pattern.CASE_INSENSITIVE;
   public static final int FLAG_COMMENTS = Pattern.COMMENTS;
   public static final int FLAG_DOTALL = Pattern.DOTALL;
-  public static final int FLAG_LITERAL = Pattern.LITERAL;
+  public static final int FLAG_LITERAL = 16; // not available in Java 1.4
   public static final int FLAG_MULTILINE = Pattern.MULTILINE;
   public static final int FLAG_UNICODE_CASE = Pattern.UNICODE_CASE;
   public static final int FLAG_UNIX_LINES = Pattern.UNIX_LINES;



Mime
View raw message