JReferencedClass is kept in a pool so that they are shared. There is one pool for each JCodeModel object.
It is impossible to cache JReferencedClass globally only because there is the _package() method, which obtains the owner JPackage object, which is scoped to JCodeModel.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|