Author: spouliot
Date: 2008-02-16 16:04:31 -0500 (Sat, 16 Feb 2008)
New Revision: 95923
Modified:
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/ChangeLog
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/SEHCatchBlock.cs
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/SEHGuardedBlock.cs
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/SEHHandlerBlockCollection.cs
Log:
2008-02-16 Sebastien Pouliot <[EMAIL PROTECTED]>
* SEHCatchBlock.cs: Seal internal class.
* SEHGuardedBlock.cs: Seal internal class.
* SEHHandlerBlockCollection.cs: Seal internal class. Rename some
parameters to match base class.
Modified:
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/ChangeLog
===================================================================
--- trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/ChangeLog
2008-02-16 21:02:56 UTC (rev 95922)
+++ trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/ChangeLog
2008-02-16 21:04:31 UTC (rev 95923)
@@ -1,3 +1,10 @@
+2008-02-16 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * SEHCatchBlock.cs: Seal internal class.
+ * SEHGuardedBlock.cs: Seal internal class.
+ * SEHHandlerBlockCollection.cs: Seal internal class. Rename some
+ parameters to match base class.
+
2008-01-11 Sebastien Pouliot <[EMAIL PROTECTED]>
* ExceptionBlockParser.cs: Since we now compile with >= 2.0 changed
Modified:
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/SEHCatchBlock.cs
===================================================================
---
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/SEHCatchBlock.cs
2008-02-16 21:02:56 UTC (rev 95922)
+++
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/SEHCatchBlock.cs
2008-02-16 21:04:31 UTC (rev 95923)
@@ -4,7 +4,7 @@
namespace Gendarme.Rules.Exceptions {
- internal class SEHCatchBlock : SEHHandlerBlock, ISEHCatchBlock {
+ internal sealed class SEHCatchBlock : SEHHandlerBlock, ISEHCatchBlock {
private TypeReference type_reference = null;
Modified:
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/SEHGuardedBlock.cs
===================================================================
---
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/SEHGuardedBlock.cs
2008-02-16 21:02:56 UTC (rev 95922)
+++
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/SEHGuardedBlock.cs
2008-02-16 21:04:31 UTC (rev 95923)
@@ -5,7 +5,7 @@
namespace Gendarme.Rules.Exceptions {
- internal class SEHGuardedBlock : ISEHGuardedBlock {
+ internal sealed class SEHGuardedBlock : ISEHGuardedBlock {
private Instruction start;
private Instruction end;
@@ -35,8 +35,7 @@
}
}
- public SEHHandlerBlockCollection SEHHandlerBlocksInternal
- {
+ public SEHHandlerBlockCollection SEHHandlerBlocksInternal {
get { return handler_blocks; }
}
}
Modified:
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/SEHHandlerBlockCollection.cs
===================================================================
---
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/SEHHandlerBlockCollection.cs
2008-02-16 21:02:56 UTC (rev 95922)
+++
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Exceptions/Impl/SEHHandlerBlockCollection.cs
2008-02-16 21:04:31 UTC (rev 95923)
@@ -3,7 +3,7 @@
namespace Gendarme.Rules.Exceptions {
- internal class SEHHandlerBlockCollection : IList, ICollection {
+ internal sealed class SEHHandlerBlockCollection : IList, ICollection {
private ArrayList list;
@@ -82,14 +82,14 @@
list.Insert (index, sehHandlerBlock);
}
- int IList.Add (object obj)
+ int IList.Add (object value)
{
- return Add ((SEHHandlerBlock)obj);
+ return Add ((SEHHandlerBlock)value);
}
- void IList.Remove (object obj)
+ void IList.Remove (object value)
{
- Remove ((SEHHandlerBlock)obj);
+ Remove ((SEHHandlerBlock)value);
}
object IList.this[int index] {
@@ -97,19 +97,19 @@
set { throw new NotSupportedException (); }
}
- int IList.IndexOf (object obj)
+ int IList.IndexOf (object value)
{
- return IndexOf ((SEHHandlerBlock)obj);
+ return IndexOf ((SEHHandlerBlock)value);
}
- bool IList.Contains (object obj)
+ bool IList.Contains (object value)
{
- return Contains ((SEHHandlerBlock)obj);
+ return Contains ((SEHHandlerBlock)value);
}
- void IList.Insert (int index, object obj)
+ void IList.Insert (int index, object value)
{
- Insert (index, (SEHHandlerBlock)obj);
+ Insert (index, (SEHHandlerBlock)value);
}
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches