You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by di...@apache.org on 2009/12/14 13:18:19 UTC
svn commit: r890288 - in /incubator/lucene.net/trunk/C#/src/Lucene.Net:
Analysis/CachingTokenFilter.cs Analysis/TokenStream.cs
Util/AttributeSource.cs
Author: digy
Date: Mon Dec 14 12:18:17 2009
New Revision: 890288
URL: http://svn.apache.org/viewvc?rev=890288&view=rev
Log:
[5] Added Obsolete attribute to deprecated methods/classes of Lucene.Java 2.9.1
Modified:
incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CachingTokenFilter.cs
incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/TokenStream.cs
incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/AttributeSource.cs
Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CachingTokenFilter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/CachingTokenFilter.cs?rev=890288&r1=890287&r2=890288&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CachingTokenFilter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CachingTokenFilter.cs Mon Dec 14 12:18:17 2009
@@ -43,6 +43,7 @@
/// <deprecated> Will be removed in Lucene 3.0. This method is final, as it should
/// not be overridden. Delegates to the backwards compatibility layer.
/// </deprecated>
+ [Obsolete("Will be removed in Lucene 3.0. This method is final, as it should not be overridden. Delegates to the backwards compatibility layer. ")]
public override Token Next(Token reusableToken)
{
return base.Next(reusableToken);
@@ -51,6 +52,7 @@
/// <deprecated> Will be removed in Lucene 3.0. This method is final, as it should
/// not be overridden. Delegates to the backwards compatibility layer.
/// </deprecated>
+ [Obsolete("Will be removed in Lucene 3.0. This method is final, as it should not be overridden. Delegates to the backwards compatibility layer. ")]
public override Token Next()
{
return base.Next();
Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/TokenStream.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/TokenStream.cs?rev=890288&r1=890287&r2=890288&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/TokenStream.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/TokenStream.cs Mon Dec 14 12:18:17 2009
@@ -333,18 +333,18 @@
/// the next token. Implementing classes must implement this method and update
/// the appropriate {@link AttributeImpl}s with the attributes of the next
/// token.
- /// <P>
+ ///
/// The producer must make no assumptions about the attributes after the
/// method has been returned: the caller may arbitrarily change it. If the
/// producer needs to preserve the state for subsequent calls, it can use
/// {@link #captureState} to create a copy of the current attribute state.
- /// <p>
+ ///
/// This method is called for every token of a document, so an efficient
/// implementation is crucial for good performance. To avoid calls to
/// {@link #AddAttribute(Class)} and {@link #GetAttribute(Class)} or downcasts,
/// references to all {@link AttributeImpl}s that this stream uses should be
/// retrieved during instantiation.
- /// <p>
+ ///
/// To ensure that filters and consumers know which attributes are available,
/// the attributes must be added during instantiation. Filters and consumers
/// are not required to check for availability of attributes in
@@ -353,9 +353,8 @@
/// </summary>
/// <returns> false for end of stream; true otherwise
///
- /// <p>
- /// <b>Note that this method will be defined abstract in Lucene
- /// 3.0.</b>
+ /// Note that this method will be defined abstract in Lucene
+ /// 3.0.
/// </returns>
public virtual bool IncrementToken()
{
@@ -399,7 +398,7 @@
/// tokenization performance), but this is not required and a new Token may be
/// returned. Callers may re-use a single Token instance for successive calls
/// to this method.
- /// <p>
+ ///
/// This implicitly defines a "contract" between consumers (callers of this
/// method) and producers (implementations of this method that are the source
/// for tokens):
Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/AttributeSource.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Util/AttributeSource.cs?rev=890288&r1=890287&r2=890288&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/AttributeSource.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/AttributeSource.cs Mon Dec 14 12:18:17 2009
@@ -144,7 +144,7 @@
/// <summary>Returns a new iterator that iterates the attribute classes
/// in the same order they were added in.
- /// <p>Signature for Java 1.5: <code>public Iterator<Class<? extends Attribute>> getAttributeClassesIterator()</code>
+ /// Signature for Java 1.5: <code>public Iterator<Class<? extends Attribute>> getAttributeClassesIterator()</code>
///
/// Note that this return value is different from Java in that it enumerates over the values
/// and not the keys
@@ -160,7 +160,7 @@
/// <summary>Returns a new iterator that iterates all unique Attribute implementations.
/// This iterator may contain less entries that {@link #getAttributeClassesIterator},
/// if one instance implements more than one Attribute interface.
- /// <p>Signature for Java 1.5: <code>public Iterator<AttributeImpl> getAttributeImplsIterator()</code>
+ /// Signature for Java 1.5: <code>public Iterator<AttributeImpl> getAttributeImplsIterator()</code>
/// </summary>
public virtual System.Collections.Generic.IEnumerable<AttributeImpl> GetAttributeImplsIterator()
{
@@ -249,7 +249,7 @@
/// This method first checks if an instance of that class is
/// already in this AttributeSource and returns it. Otherwise a
/// new instance is created, added to this AttributeSource and returned.
- /// <p>Signature for Java 1.5: <code>public <T extends Attribute> T addAttribute(Class<T>)</code>
+ /// Signature for Java 1.5: <code>public <T extends Attribute> T addAttribute(Class<T>)</code>
/// </summary>
public virtual Attribute AddAttribute(System.Type attClass)
{
@@ -273,7 +273,7 @@
/// <summary> The caller must pass in a Class<? extends Attribute> value.
/// Returns true, iff this AttributeSource contains the passed-in Attribute.
- /// <p>Signature for Java 1.5: <code>public boolean hasAttribute(Class<? extends Attribute>)</code>
+ /// Signature for Java 1.5: <code>public boolean hasAttribute(Class<? extends Attribute>)</code>
/// </summary>
public virtual bool HasAttribute(System.Type attClass)
{
@@ -282,7 +282,7 @@
/// <summary> The caller must pass in a Class<? extends Attribute> value.
/// Returns the instance of the passed in Attribute contained in this AttributeSource
- /// <p>Signature for Java 1.5: <code>public <T extends Attribute> T getAttribute(Class<T>)</code>
+ /// Signature for Java 1.5: <code>public <T extends Attribute> T getAttribute(Class<T>)</code>
///
/// </summary>
/// <throws> IllegalArgumentException if this AttributeSource does not contain the </throws>
@@ -386,7 +386,7 @@
/// contained in this state (e.g. it is not possible to restore the state of
/// an AttributeSource containing a TermAttribute into a AttributeSource using
/// a Token instance as implementation).
- /// <p>
+ ///
/// Note that this method does not affect attributes of the targetStream
/// that are not contained in this state. In other words, if for example
/// the targetStream contains an OffsetAttribute, but this state doesn't, then