Skip to content

Commit 35d6530

Browse files
author
Vladimir Kotal
committed
add argument to generic type, remove redundant cast
1 parent 251d28c commit 35d6530

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ private History mergeOldAndNewHistory(File cacheFile, History histNew, Repositor
303303
if (!listOld.isEmpty()) {
304304
RuntimeEnvironment env = RuntimeEnvironment.getInstance();
305305
List<HistoryEntry> listNew = histNew.getHistoryEntries();
306-
ListIterator li = listNew.listIterator(listNew.size());
306+
ListIterator<HistoryEntry> li = listNew.listIterator(listNew.size());
307307
while (li.hasPrevious()) {
308-
listOld.add(0, (HistoryEntry) li.previous());
308+
listOld.add(0, li.previous());
309309
}
310310
history = new History(listOld);
311311

0 commit comments

Comments
 (0)