jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marti...@apache.org
Subject svn commit: r628754 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/DatabaseJournal.java
Date Mon, 18 Feb 2008 14:27:57 GMT
Author: martijnh
Date: Mon Feb 18 06:27:56 2008
New Revision: 628754

URL: http://svn.apache.org/viewvc?rev=628754&view=rev
Log:
JCR-1087 Maintain the cluster revision table

- Replaced Java 1.5 String.contains call by a String.indexOf call.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/DatabaseJournal.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/DatabaseJournal.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/DatabaseJournal.java?rev=628754&r1=628753&r2=628754&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/DatabaseJournal.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/DatabaseJournal.java
Mon Feb 18 06:27:56 2008
@@ -814,7 +814,7 @@
                     // Skip comments and empty lines, and select only the statement
                     // to create the LOCAL_REVISIONS table.
                     if (!sql.startsWith("#") && sql.length() > 0
-                            && sql.contains(LOCAL_REVISIONS_TABLE)) {
+                            && sql.indexOf(LOCAL_REVISIONS_TABLE) != -1) {
                         // replace prefix variable
                         sql = createSchemaSQL(sql);
                         // execute sql stmt



Mime
View raw message