Skip to content

Commit 3a3fef6

Browse files
author
Vladimir Kotal
committed
use camel case
1 parent 25db2e2 commit 3a3fef6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/GitRepository.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,42 +183,42 @@ private HistoryRevResult getHistoryRev(OutputStream out, String fullpath, String
183183
@Override
184184
boolean getHistoryGet(OutputStream out, String parent, String basename, String rev) {
185185

186-
String fullpath;
186+
String fullPath;
187187
try {
188-
fullpath = new File(parent, basename).getCanonicalPath();
188+
fullPath = new File(parent, basename).getCanonicalPath();
189189
} catch (IOException e) {
190190
LOGGER.log(Level.WARNING, e, () -> String.format(
191191
"Failed to get canonical path: %s/%s", parent, basename));
192192
return false;
193193
}
194194

195-
HistoryRevResult result = getHistoryRev(out, fullpath, rev);
195+
HistoryRevResult result = getHistoryRev(out, fullPath, rev);
196196
if (!result.success && result.iterations < 1) {
197197
/*
198198
* If we failed to get the contents it might be that the file was
199199
* renamed so we need to find its original name in that revision
200200
* and retry with the original name.
201201
*/
202-
String origpath;
202+
String origPath;
203203
try {
204-
origpath = findOriginalName(fullpath, rev);
204+
origPath = findOriginalName(fullPath, rev);
205205
} catch (IOException exp) {
206206
LOGGER.log(Level.SEVERE, exp, () -> String.format(
207207
"Failed to get original revision: %s/%s (revision %s)",
208208
parent, basename, rev));
209209
return false;
210210
}
211211

212-
if (origpath != null) {
212+
if (origPath != null) {
213213
String fullRenamedPath;
214214
try {
215-
fullRenamedPath = Paths.get(getCanonicalDirectoryName(), origpath).toString();
215+
fullRenamedPath = Paths.get(getCanonicalDirectoryName(), origPath).toString();
216216
} catch (IOException e) {
217217
LOGGER.log(Level.WARNING, e, () -> String.format(
218-
"Failed to get canonical path: .../%s", origpath));
218+
"Failed to get canonical path: .../%s", origPath));
219219
return false;
220220
}
221-
if (!fullRenamedPath.equals(fullpath)) {
221+
if (!fullRenamedPath.equals(fullPath)) {
222222
result = getHistoryRev(out, fullRenamedPath, rev);
223223
}
224224
}

0 commit comments

Comments
 (0)