groovy/groovy-core — pull request #87 by adriannistor (2012-12-18 18:36:51+00:00)
Title: GROOVY-5854: wasted work in the "ClassNode" constructor

Pull request for http://jira.codehaus.org/browse/GROOVY-5854

The problem appears in version 2.0.5 and in revision 4cf5263.. This
problem is similar to the previously fixed GROOVY-5803, GROOVY-5823,
GROOVY-5825, and GROOVY-5827.

In the "ClassNode" constructor (the constructor with 5 parameters),
the loop over "interfaces" should break immediately after
"usesGenerics" is set to "true". All the iterations after
"usesGenerics" is set to "true" do not perform any useful work, at
best they just set "usesGenerics" again to "true".