String.indexOf()
String.lastIndexOf()
建议使用快速修复将此类字符串文字替换为等效的字符文字,从而获得一些性能增强。
示例:
return s.indexOf("x");
在应用快速修复后:
return s.indexOf('x');