@@ -266,7 +266,7 @@ document.pageReady.push(function() { pageReadyList();});
266
266
// find the definitions in the index.
267
267
Definitions defs = IndexDatabase . getDefinitions(resourceFile);
268
268
Annotation annotation = cfg. getAnnotation();
269
- // SRCROOT is read with UTF-8 as a default.
269
+ // Data under source root is read with UTF-8 as a default.
270
270
r = IOUtils . createBOMStrippedReader(bin,
271
271
StandardCharsets . UTF_8. name());
272
272
AnalyzerGuru . writeDumpedXref(request. getContextPath(), a,
@@ -312,8 +312,7 @@ Click <a href="<%= rawPath %>">download <%= basename %></a><%
312
312
in = new BufferedInputStream (new FileInputStream (resourceFile));
313
313
} else {
314
314
tempf = File . createTempFile(" ogtags" , basename);
315
- if (HistoryGuru . getInstance(). getRevision(tempf,
316
- resourceFile. getParent(), basename, rev)) {
315
+ if (HistoryGuru . getInstance(). getRevision(tempf, resourceFile. getParent(), basename, rev)) {
317
316
in = new BufferedInputStream (new FileInputStream (tempf));
318
317
} else {
319
318
tempf. delete();
@@ -346,8 +345,7 @@ Click <a href="<%= rawPath %>">download <%= basename %></a><%
346
345
<pre ><%
347
346
if (g == AbstractAnalyzer . Genre . PLAIN ) {
348
347
Definitions defs = null ;
349
- ObjectPool<Ctags > ctagsPool = cfg. getEnv().
350
- getIndexerParallelizer(). getCtagsPool();
348
+ ObjectPool<Ctags > ctagsPool = cfg. getEnv(). getIndexerParallelizer(). getCtagsPool();
351
349
int tries = 2 ;
352
350
while (cfg. getEnv(). isWebappCtags()) {
353
351
Ctags ctags = ctagsPool. get();
@@ -358,8 +356,7 @@ Click <a href="<%= rawPath %>">download <%= basename %></a><%
358
356
break ;
359
357
} catch (InterruptedException ex) {
360
358
if (-- tries > 0 ) {
361
- LOGGER . log(Level . WARNING ,
362
- " doCtags() interrupted--{0}" ,
359
+ LOGGER . log(Level . WARNING , " doCtags() interrupted--{0}" ,
363
360
ex. getMessage());
364
361
continue ;
365
362
}
@@ -376,25 +373,23 @@ Click <a href="<%= rawPath %>">download <%= basename %></a><%
376
373
Annotation annotation = cfg. getAnnotation();
377
374
// not needed yet
378
375
// annotation.writeTooltipMap(out);
379
- // SRCROOT is read with UTF-8 as a default.
380
- r = IOUtils . createBOMStrippedReader(in,
381
- StandardCharsets . UTF_8. name());
382
- AnalyzerGuru . writeDumpedXref(
383
- request. getContextPath(),
376
+ // The data under source root is read with UTF-8 as a default.
377
+ r = IOUtils . createBOMStrippedReader(in, StandardCharsets . UTF_8. name());
378
+ AnalyzerGuru . writeDumpedXref(request. getContextPath(),
384
379
a, r, out,
385
380
defs, annotation, project);
386
381
} else if (g == AbstractAnalyzer . Genre . IMAGE ) {
387
382
% > </pre >
388
383
<img src =" <%= rawPath % > ?<%= QueryParameters . REVISION_PARAM_EQ % ><%= Util . URIEncode(rev) % >" />
389
384
<pre ><%
390
385
} else if (g == AbstractAnalyzer . Genre . HTML ) {
391
- /**
386
+ /*
392
387
* For backward compatibility, read the
393
388
* OpenGrok-produced document using the system
394
389
* default charset.
395
390
*/
396
391
r = new InputStreamReader (in);
397
- /**
392
+ /*
398
393
* dumpXref() is also useful here for
399
394
* translating links.
400
395
*/
@@ -444,8 +439,7 @@ Click <a href="<%= rawPath %>">download <%= basename %></a><%
444
439
}
445
440
}
446
441
} else {
447
- // requesting cross referenced file
448
-
442
+ // Requesting cross referenced file with no known revision.
449
443
File xrefFile = cfg. findDataFile();
450
444
if (xrefFile != null ) {
451
445
% >
0 commit comments