In our last Salesforce Security Review we have faced an issue related to the ommitted sharing declarations of inner classes acting as a wrapper.
We have passed this review for years so I guess some new kind of criteria must have been included recently.
These inner wrapper classes are not accessing data anyhow so I wanted to know which would be the recommended sharing declaration (probably with sharing
or inherithed sharing
) for them in order to pass the Salesforce Security Review or, if it would be enough to report them as False Positives.
inherited sharing
,with sharing
also would be fine though.