Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-934

Railo railo.runtime.op.Constants Class should be removed

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Optional
    • Resolution: Partially Completed
    • Affects Version/s: 3.2.1.000, 3.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      The Constants class implements features that are already present in the Java API.

      Railo should use Integer.valueOf(int) and Boolean.valueOf(boolean) instead. The cache provided by Integer is also larger (-128 to 127).

      Note that Railo should never use new Integer() (or new Boolean() etc.) in the code and should use valueOf() everywhere because the internal classes generally implement caching and are compiled to native code very quickly.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                esprehn Elliott Sprehn
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: