提交 4f750584 authored 作者: Jacek Ławrynowicz's avatar Jacek Ławrynowicz

improve variable naming

上级 e2ab04e4
...@@ -415,8 +415,8 @@ public class PageStore implements CacheWriter { ...@@ -415,8 +415,8 @@ public class PageStore implements CacheWriter {
private void writeBack() { private void writeBack() {
ArrayList<CacheObject> list = cache.getAllChanged(); ArrayList<CacheObject> list = cache.getAllChanged();
Collections.sort(list); Collections.sort(list);
for (CacheObject aList : list) { for (CacheObject cacheObject : list) {
writeBack(aList); writeBack(cacheObject);
} }
} }
......
...@@ -150,8 +150,8 @@ public class FileUtils { ...@@ -150,8 +150,8 @@ public class FileUtils {
List<FilePath> list = FilePath.get(path).newDirectoryStream(); List<FilePath> list = FilePath.get(path).newDirectoryStream();
int len = list.size(); int len = list.size();
List<String> result = new ArrayList<>(len); List<String> result = new ArrayList<>(len);
for (FilePath aList : list) { for (FilePath filePath : list) {
result.add(aList.toString()); result.add(filePath.toString());
} }
return result; return result;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论