Skip to content

Commit 04c946a

Browse files
committed
improve variable naming
1 parent b7c6d0b commit 04c946a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

opengrok-web/src/main/java/org/opengrok/web/PageConfig.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,9 +1064,9 @@ public IgnoredNames getIgnoredNames() {
10641064
*/
10651065
public String getSourceRootPath() {
10661066
if (sourceRootPath == null) {
1067-
String srcpath = getEnv().getSourceRootPath();
1068-
if (srcpath != null) {
1069-
sourceRootPath = srcpath.replace(File.separatorChar, PATH_SEPARATOR);
1067+
String srcPathEnv = getEnv().getSourceRootPath();
1068+
if (srcPathEnv != null) {
1069+
sourceRootPath = srcPathEnv.replace(File.separatorChar, PATH_SEPARATOR);
10701070
}
10711071
}
10721072
return sourceRootPath;
@@ -1107,8 +1107,8 @@ public String getPath() {
11071107
* @return true if file/directory corresponding to the request path exists however is unreadable, false otherwise
11081108
*/
11091109
public boolean isUnreadable() {
1110-
File f = new File(getSourceRootPath(), getPath());
1111-
return f.exists() && !f.canRead();
1110+
File file = new File(getSourceRootPath(), getPath());
1111+
return file.exists() && !file.canRead();
11121112
}
11131113

11141114
/**
@@ -1123,12 +1123,12 @@ public boolean isUnreadable() {
11231123
* @see #getSourceRootPath()
11241124
*/
11251125
public File getResourceFile(String path) {
1126-
File f;
1127-
f = new File(getSourceRootPath(), path);
1128-
if (!f.canRead()) {
1126+
File file;
1127+
file = new File(getSourceRootPath(), path);
1128+
if (!file.canRead()) {
11291129
return null;
11301130
}
1131-
return f;
1131+
return file;
11321132
}
11331133

11341134
/**

0 commit comments

Comments
 (0)