Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Completed
-
5.1 EE SP4 (5.1.7), 5.2 EE SP2 (5.2.6)
-
All
Description
GetterUtil is used to parse String into a required value type (i.e. int, long, short, etc). This class has been rewritten to improve performance.
Previously, the implementation of this class relied on JDK's standard Long.parseLong(String), Integer.parseInt(String) and Short.parseShort(String). If these methods fail to parse the string, it will throw and exception. Handling exceptions is expensive and the exception is not used. So to address this performance issue, GetterUtil has been rewritten to directly parse the string. Now, if the string can not be parsed, an exception doesn't have to be thrown.
Attachments
Issue Links
- is related to
-
LPS-6731 Improve GetterUtil to avoid unnecessary NumberFormatException
- Closed