-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Completed
-
Affects Version/s: 5.1 EE SP4 (5.1.7), 5.2 EE SP2 (5.2.6)
-
Fix Version/s: 5.1 EE SP5 (5.1.8), 5.2 EE SP3 (5.2.7)
-
Component/s: Performance
-
Labels:None
-
Environment:All
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.
- is related to
-
LPS-6731 Improve GetterUtil to avoid unnecessary NumberFormatException
- Closed