Added comment explaining reason for decisions.

This commit is contained in:
Joshua Feingold
2021-08-18 16:49:04 -05:00
parent 389d2e855e
commit 0a92718a4e

View File

@ -100,6 +100,8 @@ public class ApexCRUDViolationRule extends AbstractApexRule {
@Override
public void start(RuleContext ctx) {
// At the start of each rule execution, these member variables need to be fresh. So they're initialized in the
// .start() method instead of the constructor, since .start() is called before every execution.
varToTypeMapping = new HashMap<>();
typeToDMLOperationMapping = ArrayListMultimap.create();
checkedTypeToDMLOperationViaESAPI = new HashMap<>();