Skip to content

Commit 4f99ffa

Browse files
idodeclareVladimir Kotal
authored andcommitted
Fix #3145 : buffer for analysis
1 parent 0241b5b commit 4f99ffa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

opengrok-web/src/main/webapp/list.jsp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ document.pageReady.push(function() { pageReadyList();});
239239
if (cfg.annotate()) {
240240
// annotate
241241
BufferedInputStream bin =
242-
new BufferedInputStream(new FileInputStream(resourceFile));
242+
new BufferedInputStream(new FileInputStream(resourceFile));
243243
try {
244244
AnalyzerFactory a = AnalyzerGuru.find(basename);
245245
AbstractAnalyzer.Genre g = AnalyzerGuru.getGenre(a);
@@ -310,13 +310,12 @@ Click <a href="<%= rawPath %>">download <%= basename %></a><%
310310
File tempf = null;
311311
try {
312312
if (rev.equals(DUMMY_REVISION)) {
313-
in = new FileInputStream(resourceFile);
313+
in = new BufferedInputStream(new FileInputStream(resourceFile));
314314
} else {
315315
tempf = File.createTempFile("ogtags", basename);
316316
if (HistoryGuru.getInstance().getRevision(tempf,
317317
resourceFile.getParent(), basename, rev)) {
318-
in = new BufferedInputStream(
319-
new FileInputStream(tempf));
318+
in = new BufferedInputStream(new FileInputStream(tempf));
320319
} else {
321320
tempf.delete();
322321
tempf = null;

0 commit comments

Comments
 (0)