S3027 is claiming that String.indexOf(char) performs better than String.indexOf(String), while it seems a common agreement, there is no strong evidence and it seems to be dependent on the java version (and potentially other reason).
The worst part is that with java version >= 11, it seems to be the opposite, changing the code as advised will actually perform worse.
We should reconsider the scope of the rule by:
- Removing it from Sonar-Way
- Deprecate the rule.