lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r887995 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/store/NoLockFactory.java
Date Mon, 07 Dec 2009 16:49:22 GMT
Author: uschindler
Date: Mon Dec  7 16:49:21 2009
New Revision: 887995

URL: http://svn.apache.org/viewvc?rev=887995&view=rev
Log:
LUCENE-2103: NoLockFactory should have a private constructor

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/store/NoLockFactory.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=887995&r1=887994&r2=887995&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Mon Dec  7 16:49:21 2009
@@ -20,6 +20,10 @@
   custom Similarity can alter how norms are encoded, though they must
   still be encoded as a single byte (Johan Kindgren via Mike
   McCandless)
+  
+* LUCENE-2103: NoLockFactory should have a private constructor;
+  until Lucene 4.0 the default one will be deprecated.
+  (Shai Erera via Uwe Schindler) 
 
 Bug fixes
 

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/NoLockFactory.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/store/NoLockFactory.java?rev=887995&r1=887994&r2=887995&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/NoLockFactory.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/NoLockFactory.java Mon Dec  7 16:49:21
2009
@@ -32,6 +32,14 @@
   // Single instance returned whenever makeLock is called.
   private static NoLock singletonLock = new NoLock();
   private static NoLockFactory singleton = new NoLockFactory();
+  
+  /**
+   * @deprecated This constructor was not intended to be public and should not be used.
+   *  It will be made private in Lucene 4.0
+   * @see #getNoLockFactory()
+   */
+  // make private in 4.0!
+  public NoLockFactory() {}
 
   public static NoLockFactory getNoLockFactory() {
     return singleton;



Mime
View raw message