[KULRICE-9041] Performance - MessageStructureUtils - translateStringMessage Created: 27/Feb/13  Updated: 16/Jan/15

Status: Open
Project: Kuali Rice Development
Component/s: Development, User Experience (UX)
Affects Version/s: 2.2
Fix Version/s: Backlog
Security Level: Public (Public: Anyone can view)

Type: Improvement Priority: Minor
Reporter: Jeff Domeyer (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: Old
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relate
relates to KULRICE-6557 Improve Performance and Memory Consum... Closed
Epic Link: Performance
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:


Generated at Thu Aug 13 14:23:53 CDT 2020 using JIRA 7.0.11#70121-sha1:19d24976997c1d95f06f3e327e087be0b71f28d4.