Patent ID: 8924945

Claim:
A computer-implemented method for initializing computer programming elements based on dependency graphs, the method comprising: determining a dependency graph associated with a computer programming element to be initialized, wherein the dependency graph comprises one or more nodes that define dependency relationships of one or more computer programming elements including the computer programming element to be initialized, and wherein each of the one or more computer programming elements is associated with thread information; traversing the determined dependency graph, so as to obtain the thread information associated with each of the one or more computer programming elements of the determined dependency graph; determining, based on the obtained thread information associated with each of the computer programming elements, an aggregate thread information of all the computer programming elements of the determined dependency graph; generating code which initializes the computer programming element to be initialized based at least on the determined aggregate thread information; determining whether the determined aggregate thread information corresponds to a declared thread information of the computer programming element to be initialized; and generating, if the determined aggregate thread information does not correspond to the declared thread information, a notification for communicating to a user, the notification indicating that the determined aggregate thread information does not correspond to the declared thread information.