Author: spouliot
Date: 2008-02-10 14:46:47 -0500 (Sun, 10 Feb 2008)
New Revision: 95400

Modified:
   trunk/mcs/class/corlib/System.Text/ChangeLog
   trunk/mcs/class/corlib/System.Text/DecoderExceptionFallback.cs
   trunk/mcs/class/corlib/System.Text/EncoderExceptionFallback.cs
Log:
2008-02-10  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * DecoderExceptionFallback.cs: Use 'is' instead of 'as' and a null
        check. Found using Gendarme new UseIsOperator rule.
        * EncoderExceptionFallback.cs: Use 'is' instead of 'as' and a null
        check. Found using Gendarme new UseIsOperator rule.



Modified: trunk/mcs/class/corlib/System.Text/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Text/ChangeLog        2008-02-10 19:46:34 UTC 
(rev 95399)
+++ trunk/mcs/class/corlib/System.Text/ChangeLog        2008-02-10 19:46:47 UTC 
(rev 95400)
@@ -1,3 +1,10 @@
+2008-02-10  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * DecoderExceptionFallback.cs: Use 'is' instead of 'as' and a null
+       check. Found using Gendarme new UseIsOperator rule.
+       * EncoderExceptionFallback.cs: Use 'is' instead of 'as' and a null
+       check. Found using Gendarme new UseIsOperator rule.
+
 2007-12-27  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * DecoderFallback.cs, EncoderFallback.cs, Encoding.cs :

Modified: trunk/mcs/class/corlib/System.Text/DecoderExceptionFallback.cs
===================================================================
--- trunk/mcs/class/corlib/System.Text/DecoderExceptionFallback.cs      
2008-02-10 19:46:34 UTC (rev 95399)
+++ trunk/mcs/class/corlib/System.Text/DecoderExceptionFallback.cs      
2008-02-10 19:46:47 UTC (rev 95400)
@@ -49,7 +49,7 @@
 
                public override bool Equals (object value)
                {
-                       return value as DecoderExceptionFallback != null;
+                       return (value is DecoderExceptionFallback);
                }
 
                public override int GetHashCode ()

Modified: trunk/mcs/class/corlib/System.Text/EncoderExceptionFallback.cs
===================================================================
--- trunk/mcs/class/corlib/System.Text/EncoderExceptionFallback.cs      
2008-02-10 19:46:34 UTC (rev 95399)
+++ trunk/mcs/class/corlib/System.Text/EncoderExceptionFallback.cs      
2008-02-10 19:46:47 UTC (rev 95400)
@@ -49,7 +49,7 @@
 
                public override bool Equals (object value)
                {
-                       return value as EncoderExceptionFallback != null;
+                       return (value is EncoderExceptionFallback);
                }
 
                public override int GetHashCode ()

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to