Revision: 15054
http://gate.svn.sourceforge.net/gate/?rev=15054&view=rev
Author: markagreenwood
Date: 2012-01-15 17:40:25 +0000 (Sun, 15 Jan 2012)
Log Message:
-----------
some variables which should be final weren't, but now they are
Modified Paths:
--------------
gate/trunk/src/gate/creole/annic/apache/lucene/index/IndexWriter.java
gate/trunk/src/gate/creole/annic/apache/lucene/store/Lock.java
Modified: gate/trunk/src/gate/creole/annic/apache/lucene/index/IndexWriter.java
===================================================================
--- gate/trunk/src/gate/creole/annic/apache/lucene/index/IndexWriter.java
2012-01-15 10:12:10 UTC (rev 15053)
+++ gate/trunk/src/gate/creole/annic/apache/lucene/index/IndexWriter.java
2012-01-15 17:40:25 UTC (rev 15054)
@@ -54,7 +54,7 @@
* Default value is 1000. Use
<code>gate.creole.annic.apache.lucene.writeLockTimeout</code>
* system property to override.
*/
- public static long WRITE_LOCK_TIMEOUT =
+ public static final long WRITE_LOCK_TIMEOUT =
Integer.parseInt(System.getProperty("gate.creole.annic.apache.lucene.writeLockTimeout",
"1000"));
@@ -62,7 +62,7 @@
* Default value is 10000. Use
<code>gate.creole.annic.apache.lucene.commitLockTimeout</code>
* system property to override.
*/
- public static long COMMIT_LOCK_TIMEOUT =
+ public static final long COMMIT_LOCK_TIMEOUT =
Integer.parseInt(System.getProperty("gate.creole.annic.apache.lucene.commitLockTimeout",
"10000"));
Modified: gate/trunk/src/gate/creole/annic/apache/lucene/store/Lock.java
===================================================================
--- gate/trunk/src/gate/creole/annic/apache/lucene/store/Lock.java
2012-01-15 10:12:10 UTC (rev 15053)
+++ gate/trunk/src/gate/creole/annic/apache/lucene/store/Lock.java
2012-01-15 17:40:25 UTC (rev 15054)
@@ -34,7 +34,7 @@
* @see Directory#makeLock(String)
*/
public abstract class Lock {
- public static long LOCK_POLL_INTERVAL = 1000;
+ public static final long LOCK_POLL_INTERVAL = 1000;
/** Attempts to obtain exclusive access and immediately return
* upon success or failure.
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs