lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romseyg...@apache.org
Subject [2/2] lucene-solr:branch_7x: LUCENE-8388: Deprecate PostingsEnum#attributes()
Date Fri, 06 Jul 2018 17:16:48 GMT
LUCENE-8388: Deprecate PostingsEnum#attributes()


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/9a6706ed
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9a6706ed
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9a6706ed

Branch: refs/heads/branch_7x
Commit: 9a6706ed32646e74fb64a8b2caa05fd6bc7e8a35
Parents: b3896b4
Author: Alan Woodward <romseygeek@apache.org>
Authored: Fri Jul 6 17:58:52 2018 +0100
Committer: Alan Woodward <romseygeek@apache.org>
Committed: Fri Jul 6 18:16:35 2018 +0100

----------------------------------------------------------------------
 lucene/CHANGES.txt                                            | 2 ++
 .../core/src/java/org/apache/lucene/index/PostingsEnum.java   | 7 ++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9a6706ed/lucene/CHANGES.txt
----------------------------------------------------------------------
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 19a868f..0e2bf33 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -19,6 +19,8 @@ API Changes:
 
 * LUCENE-8379: Add experimental TermQuery.getTermStates method (Mike McCandless)
 
+* LUCENE-8388: PostingsEnum#attributes() has been deprecated (Alan Woodward)
+
 Bug Fixes:
 
 * LUCENE-8380: UTF8TaxonomyWriterCache inconsistency. (Ruslan Torobaev, Dawid Weiss)

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9a6706ed/lucene/core/src/java/org/apache/lucene/index/PostingsEnum.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/index/PostingsEnum.java b/lucene/core/src/java/org/apache/lucene/index/PostingsEnum.java
index fdd32a9..685ceeb 100644
--- a/lucene/core/src/java/org/apache/lucene/index/PostingsEnum.java
+++ b/lucene/core/src/java/org/apache/lucene/index/PostingsEnum.java
@@ -63,6 +63,7 @@ public abstract class PostingsEnum extends DocIdSetIterator {
     return (flags & feature) == feature;
   }
 
+  @Deprecated
   private AttributeSource atts = null;
 
   /** Sole constructor. (For invocation by subclass 
@@ -82,7 +83,11 @@ public abstract class PostingsEnum extends DocIdSetIterator {
    */
   public abstract int freq() throws IOException;
   
-  /** Returns the related attributes. */
+  /**
+   * Returns the related attributes.
+   * @deprecated this method is unused and will be removed in 7.0
+   */
+  @Deprecated
   public AttributeSource attributes() {
     if (atts == null) atts = new AttributeSource();
     return atts;


Mime
View raw message