iFanie / Java-DataClass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accessible calls

Sxtanna opened this issue · comments

Any reason you set the field instances back to their original state? IIRC these instances are just views of the field and 'getDeclaredFields' will always return new instances.

Could save a bunch of time to just set accessible

@Sxtanna interesting. You are saying that restoring the accessible flag has no use if I getDeclaredFields every time?

Exactly.

(this is technically very minor in respect to the real performance loss due to no caching)

@Sxtanna thank you, i will make the change. If you want to suggest a better approach, please do so.