We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error. A complete small program is good.
return channelId.substring(ChannelDefinitions.CHANNEL_ID_PREFIX_SITES.length()) .split(CHANNEL_ID_SEPARATOR)[0];
"[StringSplitter] Prefer Splitter to String.split" (http://errorprone.info/bugpattern/StringSplitter)
I don't see warning "[StringSplitter] Prefer Splitter to String.split" (http://errorprone.info/bugpattern/StringSplitter) because of "[0]"
The text was updated successfully, but these errors were encountered:
Improve StringSplitter fix
1e1e669
Fixes #904 RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=182597392
dd9cc84
cushon
No branches or pull requests
Please answer these questions before submitting your issue. Thanks!
What version of Error Prone are you using? 2.2.0
Does this issue reproduce with the latest release? haven't checked
What did you do? ninja -C . chrome_public_apk
If possible, provide a recipe for reproducing the error.
A complete small program is good.
return channelId.substring(ChannelDefinitions.CHANNEL_ID_PREFIX_SITES.length())
.split(CHANNEL_ID_SEPARATOR)[0];
What did you expect to see?
"[StringSplitter] Prefer Splitter to String.split" (http://errorprone.info/bugpattern/StringSplitter)
What did you see instead?
I don't see warning "[StringSplitter] Prefer Splitter to String.split" (http://errorprone.info/bugpattern/StringSplitter) because of "[0]"
The text was updated successfully, but these errors were encountered: