Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2324

Improve readability of source code by removing dependencies on simple StringPool constants

    Details

      Description

      The source code for Liferay Faces makes heavy utilization of constants defined in com.liferay.faces.util.StringPool. This is especially true of renderer source code.

      This task involves removing dependencies on constants with simple values since there is no PermGen benefit for using these constants, and often times a performance penalty is incurred due to excessive concatenation.

      For example, the following code :

      responseWriter.write(StringPool.OPEN_PARENTHESIS);
      responseWriter.write(StringPool.APOSTROPHE);
      

      Should be changed to:

      responseWriter.write("('");

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                liferay-faces-2.1.5-ga6
                liferay-faces-2.2.5-ga6
                liferay-faces-3.0.5-legacy-ga6
                liferay-faces-3.0.5-ga6
                liferay-faces-3.1.5-ga6
                liferay-faces-3.2.5-ga6
                liferay-faces-4.2.5-ga6