mirror of
https://github.com/apache/lucene.git
synced 2025-02-11 12:35:43 +00:00
LUCENE-2103: NoLockFactory should have a private constructor
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@887995 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0834cd4e4e
commit
1948e735e9
@ -21,6 +21,10 @@ API Changes
|
||||
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
|
||||
|
||||
* LUCENE-2092: BooleanQuery was ignoring disableCoord in its hashCode
|
||||
|
@ -33,6 +33,14 @@ public class NoLockFactory extends LockFactory {
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user