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
10 其他的一些规范
14 .尽量减少对变量的重复计算; 如下面的操作:
for (int i = 0; i < list.size(); i++) { ... }
建议替换为:
for (int i = 0, int length = list.size(); i < length; i++) { ... }
这里应该改为
for (int i = 0, length = list.size(); i < length; i++) { ... }
不需要再为length指定类型了,也不能指定了
length
The text was updated successfully, but these errors were encountered:
失误了,好的,稍后更新
Sorry, something went wrong.
No branches or pull requests
10 其他的一些规范
建议替换为:
这里应该改为
不需要再为
length
指定类型了,也不能指定了The text was updated successfully, but these errors were encountered: