Friday, January 12, 2018

Notes for improving code quality and avoiding problem

1. please make sure if you pass a ReportCriteria object to a method, you don't modify that criteria in the method. Because it is a reference object, that will affect all other methods that use that criteria. If you do need to use the modified criteria (for example to re-run a LI query with a different location), you a cloned copy of the criteria.