Velocity
  1. Velocity
  2. VELOCITY-593

Remove class map from FieldMethodizer

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.6
    • Component/s: Engine
    • Labels:
      None

      Description

      According to the API docs of Field.get():

      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()).

      1. VELOCITY-593.patch
        1 kB
        Benjamin Bentmann

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        15h 26m 1 Nathan Bubna 02/May/08 04:58
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551540 ] jira [ 12552426 ]
        Mark Thomas made changes -
        Workflow jira [ 12430168 ] Default workflow, editable Closed status [ 12551540 ]
        Nathan Bubna made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.6 [ 12310290 ]
        Hide
        Nathan Bubna added a comment -

        You're quite right. Thanks! Fixed in revision 652755

        Show
        Nathan Bubna added a comment - You're quite right. Thanks! Fixed in revision 652755
        Benjamin Bentmann made changes -
        Field Original Value New Value
        Attachment VELOCITY-593.patch [ 12381249 ]
        Benjamin Bentmann created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Benjamin Bentmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development