Showing posts with label Directly. Show all posts
Showing posts with label Directly. Show all posts

Tuesday, March 23, 2010

Avoid Directly Access Globals




Do not directly access global data from a constructor (AvoidDirectlyAccessGlobals.rule)


Description:

Directly accessing global data from a constructor is risky because the global object may not yet exist when the "other" static object is initialized. This rule detects if you directly access global data from a constructor.

Labels