Author: spouliot
Date: 2008-02-12 13:28:00 -0500 (Tue, 12 Feb 2008)
New Revision: 95541
Modified:
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/ChangeLog
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/Gendarme.Rules.Concurrency.xml.in
Log:
2008-02-12 Sebastien Pouliot <[EMAIL PROTECTED]>
* Gendarme.Rules.Concurrency.xml.in: Fix copy-paste mistake for
NonConstantStaticFieldsShouldNotBeVisibleRule
Modified: trunk/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/ChangeLog
===================================================================
--- trunk/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/ChangeLog
2008-02-12 18:22:50 UTC (rev 95540)
+++ trunk/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/ChangeLog
2008-02-12 18:28:00 UTC (rev 95541)
@@ -1,3 +1,8 @@
+2008-02-12 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * Gendarme.Rules.Concurrency.xml.in: Fix copy-paste mistake for
+ NonConstantStaticFieldsShouldNotBeVisibleRule
+
2008-01-21 Sebastien Pouliot <[EMAIL PROTECTED]>
* NonConstantStaticFieldsShouldNotBeVisibleRule.cs: New. Rule that
Modified:
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/Gendarme.Rules.Concurrency.xml.in
===================================================================
---
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/Gendarme.Rules.Concurrency.xml.in
2008-02-12 18:22:50 UTC (rev 95540)
+++
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/Gendarme.Rules.Concurrency.xml.in
2008-02-12 18:28:00 UTC (rev 95541)
@@ -3,13 +3,13 @@
Type="Gendarme.Rules.Concurrency.DoubleCheckLockingRule,
Gendarme.Rules.Concurrency, [EMAIL PROTECTED]@, Culture=neutral,
PublicKeyToken=null"
Uri="http://www.mono-project.com/Gendarme.Rules.Concurrency#DoubleCheckLockingRule"
>
<problem>Method '{0}' uses the unreliable double-check locking
technique.</problem>
- <solution>Remove the lock check that occurs outside of the
protected region. Or see:
http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html</solution>
+ <solution>Remove the lock check that occurs outside of the
protected region. See:
http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html</solution>
</rule>
<rule Name="NonConstantStaticFieldsShouldNotBeVisibleRule"
Type="Gendarme.Rules.Concurrency.NonConstantStaticFieldsShouldNotBeVisibleRule,
Gendarme.Rules.Concurrency, [EMAIL PROTECTED]@, Culture=neutral,
PublicKeyToken=null"
Uri="http://www.mono-project.com/Gendarme.Rules.Concurrency#NonConstantStaticFieldsShouldNotBeVisible"
>
<problem>Type '{0}' has some static fields that are not
constant. They may represent problems in multithreaded applications.</problem>
- <solution>Remove the lock check that occurs outside of the
protected region. Or see:
http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html</solution>
+ <solution>Change the field to read-only, mark it [ThreadStatic]
or make it non visible outside the assembly.</solution>
</rule>
<rule Name="WriteStaticFieldFromInstanceMethodRule"
Type="Gendarme.Rules.Concurrency.WriteStaticFieldFromInstanceMethodRule,
Gendarme.Rules.Concurrency, [EMAIL PROTECTED]@, Culture=neutral,
PublicKeyToken=null"
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches