mukteshkrmishra / reflections

Automatically exported from code.google.com/p/reflections
Do What The F*ck You Want To Public License
0 stars 0 forks source link

TypeElementsScanner's includeAnnotations flag cannot be modified. #157

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The class TypeElementsScanner contains a private field 'includeAnnotations'. 
This field is initialized to 'true' and cannot be modified (due to absence of a 
modifier method). Thus annotations will _always_ be stored.

I suppose there should be methods #includeAnnotations() and 
#includeAnnotations(boolean) to match the other existing methods.

Original issue reported on code.google.com by stephan...@gmail.com on 7 Sep 2013 at 7:13

GoogleCodeExporter commented 8 years ago
Now that I had another look: the methods #includeFields(), #includeMethods() 
and #publicOnly() are rather useless as-is, since they merely set flags that 
are by default already set anyway. If the private fields would default to false 
then these methods would be more useful, but admittedly changing that now would 
constitute an API change...

Original comment by stephan...@gmail.com on 7 Sep 2013 at 7:18

GoogleCodeExporter commented 8 years ago

Original comment by ronm...@gmail.com on 21 Dec 2013 at 9:35