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 14:59:37 UTC

svn commit: r890333 - in /incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis: CharTokenizer.cs CharacterCache.cs ISOLatin1AccentFilter.cs Standard/StandardAnalyzer.cs

Author: digy
Date: Mon Dec 14 13:59:36 2009
New Revision: 890333

URL: http://svn.apache.org/viewvc?rev=890333&view=rev
Log:
[7] Added Obsolete attribute to deprecated methods/classes of Lucene.Java 2.9.1

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharTokenizer.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharacterCache.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/ISOLatin1AccentFilter.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Standard/StandardAnalyzer.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharTokenizer.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/CharTokenizer.cs?rev=890333&r1=890332&r2=890333&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharTokenizer.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharTokenizer.cs Mon Dec 14 13:59:36 2009
@@ -131,6 +131,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);
@@ -139,6 +140,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/CharacterCache.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/CharacterCache.cs?rev=890333&r1=890332&r2=890333&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharacterCache.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharacterCache.cs Mon Dec 14 13:59:36 2009
@@ -23,6 +23,7 @@
 	/// <summary> Replacement for Java 1.5 Character.valueOf()</summary>
 	/// <deprecated> Move to Character.valueOf() in 3.0
 	/// </deprecated>
+    [Obsolete("Move to Character.valueOf() in 3.0")]
 	public class CharacterCache
 	{
 		

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/ISOLatin1AccentFilter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/ISOLatin1AccentFilter.cs?rev=890333&r1=890332&r2=890333&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/ISOLatin1AccentFilter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/ISOLatin1AccentFilter.cs Mon Dec 14 13:59:36 2009
@@ -32,6 +32,7 @@
 	/// <deprecated> in favor of {@link ASCIIFoldingFilter} which covers a superset 
 	/// of Latin 1. This class will be removed in Lucene 3.0.
 	/// </deprecated>
+    [Obsolete("in favor of ASCIIFoldingFilter which covers a superset of Latin 1. This class will be removed in Lucene 3.0.")]
 	public class ISOLatin1AccentFilter:TokenFilter
 	{
 		public ISOLatin1AccentFilter(TokenStream input):base(input)
@@ -70,6 +71,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);
@@ -78,6 +80,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/Standard/StandardAnalyzer.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/Standard/StandardAnalyzer.cs?rev=890333&r1=890332&r2=890333&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Standard/StandardAnalyzer.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/Standard/StandardAnalyzer.cs Mon Dec 14 13:59:36 2009
@@ -52,6 +52,7 @@
 		/// 
 		/// See https://issues.apache.org/jira/browse/LUCENE-1068
 		/// </deprecated>
+        [Obsolete("this should be removed in the next release (3.0).")]
 		private bool replaceInvalidAcronym = defaultReplaceInvalidAcronym;
 		
 		private static bool defaultReplaceInvalidAcronym;
@@ -69,6 +70,7 @@
 		/// </returns>
 		/// <deprecated> This will be removed (hardwired to true) in 3.0
 		/// </deprecated>
+        [Obsolete("This will be removed (hardwired to true) in 3.0")]
 		public static bool GetDefaultReplaceInvalidAcronym()
 		{
 			return defaultReplaceInvalidAcronym;
@@ -87,6 +89,7 @@
 		/// </param>
 		/// <deprecated> This will be removed (hardwired to true) in 3.0
 		/// </deprecated>
+        [Obsolete("This will be removed (hardwired to true) in 3.0")]
 		public static void  SetDefaultReplaceInvalidAcronym(bool replaceInvalidAcronym)
 		{
 			defaultReplaceInvalidAcronym = replaceInvalidAcronym;
@@ -213,6 +216,7 @@
 		/// </param>
 		/// <deprecated> Remove in 3.X and make true the only valid value
 		/// </deprecated>
+        [Obsolete("Remove in 3.X and make true the only valid value")]
 		public StandardAnalyzer(bool replaceInvalidAcronym):this(Version.LUCENE_24, STOP_WORDS_SET)
 		{
 			this.replaceInvalidAcronym = replaceInvalidAcronym;
@@ -228,6 +232,7 @@
 		/// </param>
 		/// <deprecated> Remove in 3.X and make true the only valid value
 		/// </deprecated>
+        [Obsolete("Remove in 3.X and make true the only valid value")]
 		public StandardAnalyzer(System.IO.TextReader stopwords, bool replaceInvalidAcronym):this(Version.LUCENE_24, stopwords)
 		{
 			this.replaceInvalidAcronym = replaceInvalidAcronym;
@@ -242,6 +247,7 @@
 		/// </param>
 		/// <deprecated> Remove in 3.X and make true the only valid value
 		/// </deprecated>
+        [Obsolete("Remove in 3.X and make true the only valid value")]
 		public StandardAnalyzer(System.IO.FileInfo stopwords, bool replaceInvalidAcronym):this(Version.LUCENE_24, stopwords)
 		{
 			this.replaceInvalidAcronym = replaceInvalidAcronym;
@@ -257,6 +263,7 @@
 		/// </param>
 		/// <deprecated> Remove in 3.X and make true the only valid value
 		/// </deprecated>
+        [Obsolete("Remove in 3.X and make true the only valid value")]
 		public StandardAnalyzer(System.String[] stopwords, bool replaceInvalidAcronym):this(Version.LUCENE_24, StopFilter.MakeStopSet(stopwords))
 		{
 			this.replaceInvalidAcronym = replaceInvalidAcronym;
@@ -271,6 +278,7 @@
 		/// </param>
 		/// <deprecated> Remove in 3.X and make true the only valid value
 		/// </deprecated>
+        [Obsolete("Remove in 3.X and make true the only valid value")]
 		public StandardAnalyzer(System.Collections.Hashtable stopwords, bool replaceInvalidAcronym):this(Version.LUCENE_24, stopwords)
 		{
 			this.replaceInvalidAcronym = replaceInvalidAcronym;
@@ -392,6 +400,7 @@
 		/// </returns>
 		/// <deprecated> This will be removed (hardwired to true) in 3.0
 		/// </deprecated>
+        [Obsolete("This will be removed (hardwired to true) in 3.0")]
 		public virtual bool IsReplaceInvalidAcronym()
 		{
 			return replaceInvalidAcronym;
@@ -404,6 +413,7 @@
 		/// </param>
 		/// <deprecated> This will be removed (hardwired to true) in 3.0
 		/// </deprecated>
+        [Obsolete("This will be removed (hardwired to true) in 3.0")]
 		public virtual void  SetReplaceInvalidAcronym(bool replaceInvalidAcronym)
 		{
 			this.replaceInvalidAcronym = replaceInvalidAcronym;