Author: spouliot
Date: 2008-02-12 13:29:04 -0500 (Tue, 12 Feb 2008)
New Revision: 95542
Modified:
branches/mono-1-9/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/ChangeLog
branches/mono-1-9/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.
[Backport of r95541]
Modified:
branches/mono-1-9/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/ChangeLog
===================================================================
---
branches/mono-1-9/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/ChangeLog
2008-02-12 18:28:00 UTC (rev 95541)
+++
branches/mono-1-9/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/ChangeLog
2008-02-12 18:29:04 UTC (rev 95542)
@@ -1,3 +1,9 @@
+2008-02-12 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * Gendarme.Rules.Concurrency.xml.in: Fix copy-paste mistake for
+ NonConstantStaticFieldsShouldNotBeVisibleRule.
+ [Backport of r95541]
+
2008-01-21 Sebastien Pouliot <[EMAIL PROTECTED]>
* NonConstantStaticFieldsShouldNotBeVisibleRule.cs: New. Rule that
Modified:
branches/mono-1-9/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/Gendarme.Rules.Concurrency.xml.in
===================================================================
---
branches/mono-1-9/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/Gendarme.Rules.Concurrency.xml.in
2008-02-12 18:28:00 UTC (rev 95541)
+++
branches/mono-1-9/mono-tools/gendarme/rules/Gendarme.Rules.Concurrency/Gendarme.Rules.Concurrency.xml.in
2008-02-12 18:29:04 UTC (rev 95542)
@@ -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