Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.3.1.1
-
Patch
Description
If you evaluate an OGNL expression which has null value, XWorkMapPropertyAccessor does the evaluation twice.
First in line 81: result = super.getProperty(context, target, name);
Second in line 91: return super.getProperty(context, target, name);
Performance can be improved by removing the second evaluation.
Line 91: return null;
This saves an extra evaluation, and at this point we can be sure that the result can only be null.
Patch is attached.
Please review it.