Author: spouliot
Date: 2008-01-11 19:26:15 -0500 (Fri, 11 Jan 2008)
New Revision: 92699

Modified:
   trunk/cecil/gendarme/rules/Gendarme.Rules.Concurrency/ChangeLog
   
trunk/cecil/gendarme/rules/Gendarme.Rules.Concurrency/DoubleCheckLockingRule.cs
Log:
2008-01-11  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * DoubleCheckingLockingRule.cs: Turn some methods to static.



Modified: trunk/cecil/gendarme/rules/Gendarme.Rules.Concurrency/ChangeLog
===================================================================
--- trunk/cecil/gendarme/rules/Gendarme.Rules.Concurrency/ChangeLog     
2008-01-12 00:20:34 UTC (rev 92698)
+++ trunk/cecil/gendarme/rules/Gendarme.Rules.Concurrency/ChangeLog     
2008-01-12 00:26:15 UTC (rev 92699)
@@ -1,3 +1,7 @@
+2008-01-11  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * DoubleCheckingLockingRule.cs: Turn some methods to static.
+
 2007-11-30  Nestor Salceda  <[EMAIL PROTECTED]>
 
        * DoubleCheckingLockingRule.cs: Extracted a method for return the error

Modified: 
trunk/cecil/gendarme/rules/Gendarme.Rules.Concurrency/DoubleCheckLockingRule.cs
===================================================================
--- 
trunk/cecil/gendarme/rules/Gendarme.Rules.Concurrency/DoubleCheckLockingRule.cs 
    2008-01-12 00:20:34 UTC (rev 92698)
+++ 
trunk/cecil/gendarme/rules/Gendarme.Rules.Concurrency/DoubleCheckLockingRule.cs 
    2008-01-12 00:26:15 UTC (rev 92699)
@@ -65,7 +65,7 @@
                        return runner.RuleSuccess;
                }
                
-               private MessageCollection DoubleCheckLockingDetected (string 
type, string method, Instruction instruction)
+               private static MessageCollection DoubleCheckLockingDetected 
(string type, string method, Instruction instruction)
                {
                        Location location = new Location (type, method, 
instruction.Offset);
                        Message message = new Message ("A double check locking 
detected", location, MessageType.Warning); 
@@ -74,7 +74,7 @@
                }
 
 
-               private bool IsMonitorMethod(Instruction insn, string 
methodName)
+               private static bool IsMonitorMethod(Instruction insn, string 
methodName)
                {
                        if(!insn.OpCode.Name.Equals("call"))
                                return false;
@@ -86,7 +86,7 @@
                        return true;
                }
 
-               private Instruction[] TwoBeforeBranch(Instruction insn)
+               private static Instruction[] TwoBeforeBranch(Instruction insn)
                {
                        if(insn.OpCode.FlowControl != FlowControl.Cond_Branch)
                                return null;
@@ -98,7 +98,7 @@
                        return twoInsns;
                }
 
-               private bool EffectivelyEqual(Instruction insn1, Instruction 
insn2)
+               private static bool EffectivelyEqual(Instruction insn1, 
Instruction insn2)
                {
                        if(!insn1.OpCode.Equals(insn2.OpCode))
                                return false;

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

Reply via email to