mirror of https://github.com/apache/lucene.git
LUCENE-1808: Query.createWeight has been changed from protected to public
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@805189 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a77168d3c9
commit
7ae9cddfef
10
CHANGES.txt
10
CHANGES.txt
|
@ -93,6 +93,13 @@ Changes in backwards compatibility policy
|
||||||
help in alleviating future back compat pain, Spans has been changed from
|
help in alleviating future back compat pain, Spans has been changed from
|
||||||
an interface to an abstract class.
|
an interface to an abstract class.
|
||||||
(Hugh Cayless, Mark Miller)
|
(Hugh Cayless, Mark Miller)
|
||||||
|
|
||||||
|
7. LUCENE-1808: Query.createWeight has been changed from protected to
|
||||||
|
public. This will be a back compat break if you have overridden this
|
||||||
|
method - but you are likely already affected by the LUCENE-1693 (make Weight
|
||||||
|
abstract rather than an interface) back compat break if you have overridden
|
||||||
|
Query.creatWeight, so we have taken the opportunity to make this change.
|
||||||
|
(Tim Smith, Shai Erera via Mark Miller)
|
||||||
|
|
||||||
Changes in runtime behavior
|
Changes in runtime behavior
|
||||||
|
|
||||||
|
@ -383,6 +390,9 @@ API Changes
|
||||||
help in alleviating future back compat pain, Spans has been changed from
|
help in alleviating future back compat pain, Spans has been changed from
|
||||||
an interface to an abstract class.
|
an interface to an abstract class.
|
||||||
(Hugh Cayless, Mark Miller)
|
(Hugh Cayless, Mark Miller)
|
||||||
|
|
||||||
|
36. LUCENE-1808: Query.createWeight has been changed from protected to
|
||||||
|
public. (Tim Smith, Shai Erera via Mark Miller)
|
||||||
|
|
||||||
Bug fixes
|
Bug fixes
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ public abstract class Query implements java.io.Serializable, Cloneable {
|
||||||
* <p>
|
* <p>
|
||||||
* Only implemented by primitive queries, which re-write to themselves.
|
* Only implemented by primitive queries, which re-write to themselves.
|
||||||
*/
|
*/
|
||||||
protected Weight createWeight(Searcher searcher) throws IOException {
|
public Weight createWeight(Searcher searcher) throws IOException {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue