Sfoglia il codice sorgente

2002-04-06 Dan Lewis <[email protected]>

	* cache.cs: Object methods should be overridden with "override".

svn path=/trunk/mcs/; revision=3655
Dan Lewis 24 anni fa
parent
commit
fd9e0a786d

+ 4 - 0
mcs/class/System/System.Text.RegularExpressions/ChangeLog

@@ -1,3 +1,7 @@
+2002-04-06  Dan Lewis  <[email protected]>
+
+	* cache.cs: Object methods should be overridden with "override".
+
 2002-04-04  Dan Lewis  <[email protected]>
 
 	* RegexRunner.cs, RegexRunnerFactory.cs: MS support classes. Stubs

+ 3 - 3
mcs/class/System/System.Text.RegularExpressions/cache.cs

@@ -58,11 +58,11 @@ namespace System.Text.RegularExpressions {
 				this.options = options;
 			}
 			
-			public new int GetHashCode () {
+			public override int GetHashCode () {
 				return pattern.GetHashCode () ^ (int)options;
 			}
 
-			public new bool Equals (object o) {
+			public override bool Equals (object o) {
 				if (o == null || o.GetType () != this.GetType ())
 					return false;
 
@@ -70,7 +70,7 @@ namespace System.Text.RegularExpressions {
 				return options == k.options && pattern.Equals (k.pattern);
 			}
 
-			public new string ToString () {
+			public override string ToString () {
 				return "('" + pattern + "', [" + options + "])";
 			}
 		}