Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-9041

Performance - MessageStructureUtils - translateStringMessage

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2
    • Fix Version/s: Backlog
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Epic Link:
    • Rice Module:
      KRAD
    • KRAD Feature Area:
      Utility
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      The translateStringMessage could perform an additional regex match at the beginning of the process to short-circuit processing if an un-escaped left bracket is not found. The brackets seem to determine if the content of a message is rich-text enabled, so without them, it would seem unnecessary to perform any parsing.

      This:
      public static String translateStringMessage(String messageText) {
      if (!StringUtils.isEmpty(messageText)) {

      could be changed to this:

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                Unassigned
                Reporter:
                jdomeyer Jeff Domeyer (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: