cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmen...@apache.org
Subject svn commit: r605942 - /cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/pref/HSQLEmbeddedPreferenceService.java
Date Thu, 20 Dec 2007 14:33:46 GMT
Author: kmenard
Date: Thu Dec 20 06:33:45 2007
New Revision: 605942

URL: http://svn.apache.org/viewvc?rev=605942&view=rev
Log:
java5: Replaced indexOf() calls with contains() calls on strings to improve readability.

Modified:
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/pref/HSQLEmbeddedPreferenceService.java

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/pref/HSQLEmbeddedPreferenceService.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/pref/HSQLEmbeddedPreferenceService.java?rev=605942&r1=605941&r2=605942&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/pref/HSQLEmbeddedPreferenceService.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/pref/HSQLEmbeddedPreferenceService.java
Thu Dec 20 06:33:45 2007
@@ -362,7 +362,7 @@
             // on Windows try deleting the lock... OS locking should prevent
             // this operation if another process is running...
             if (lockFile.exists()
-                    && System.getProperty("os.name").toLowerCase().indexOf("windows")
>= 0) {
+                    && System.getProperty("os.name").toLowerCase().contains("windows"))
{
                 lockFile.delete();
             }
 



Mime
View raw message