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
System.arraycopy
See examples below.
USE_SYSTEM_ARRAYCOPY
public static String rotateString(String word, int positions) { String[] letters = word.split(""); int pos = positions % word.length(); String[] newword = new String[word.length()]; for (int i = word.length() - pos; i < word.length(); i++) { newword[i - word.length() + pos] = letters[i]; } for (int i = pos; i < word.length(); i++) { newword[i] = letters[i - pos]; } return String.join("", newword); }
Here it could detect both, not sure how difficult that is to implement.
This is a simpler example:
public static void main(String[] args) { String[] vectors = new String[args.length - 1]; for (int i = 1; i < args.length; i++) { vectors[i - 1] = args[i]; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
See examples below.
Lint Name
USE_SYSTEM_ARRAYCOPY
Reproducer
Here it could detect both, not sure how difficult that is to implement.
This is a simpler example:
The text was updated successfully, but these errors were encountered: