Remove class map from FieldMethodizer
-------------------------------------
Key: VELOCITY-593
URL: https://issues.apache.org/jira/browse/VELOCITY-593
Project: Velocity
Issue Type: Improvement
Components: Engine
Affects Versions: 1.5
Reporter: Benjamin Bentmann
Priority: Trivial
According to the API docs of
{{[Field.get()|http://java.sun.com/javase/6/docs/api/java/lang/reflect/Field.html#get(java.lang.Object)]}}:
bq. If the underlying field is a static field, the obj argument is ignored; it
may be null.
So there is no need to waste memory on keeping a class map (besides, if one
needs to know the class defining a field, there is
{{Field.getDeclaringClass()}}).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]