mirror of https://github.com/apache/lucene.git
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
|
still be encoded as a single byte (Johan Kindgren via Mike
|
||||||
McCandless)
|
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
|
Bug fixes
|
||||||
|
|
||||||
* LUCENE-2092: BooleanQuery was ignoring disableCoord in its hashCode
|
* 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 NoLock singletonLock = new NoLock();
|
||||||
private static NoLockFactory singleton = new NoLockFactory();
|
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() {
|
public static NoLockFactory getNoLockFactory() {
|
||||||
return singleton;
|
return singleton;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue