@@ -725,7 +725,7 @@ private void addFile(File file, String path, Ctags ctags)
725
725
fa .setFoldingEnabled (env .isFoldingEnabled ());
726
726
727
727
Document doc = new Document ();
728
- try (Writer xrefOut = newXrefWriter (fa , path )) {
728
+ try (Writer xrefOut = newXrefWriter (path )) {
729
729
analyzerGuru .populateDocument (doc , file , path , fa , xrefOut );
730
730
} catch (InterruptedException e ) {
731
731
LOGGER .log (Level .WARNING , "File ''{0}'' interrupted--{1}" ,
@@ -1629,19 +1629,13 @@ public int hashCode() {
1629
1629
return hash ;
1630
1630
}
1631
1631
1632
- private boolean isXrefWriter (AbstractAnalyzer fa ) {
1633
- AbstractAnalyzer .Genre g = fa .getFactory ().getGenre ();
1634
- return (g == AbstractAnalyzer .Genre .PLAIN || g == AbstractAnalyzer .Genre .XREFABLE );
1635
- }
1636
-
1637
1632
/**
1638
1633
* Get a writer to which the xref can be written, or null if no xref
1639
1634
* should be produced for files of this type.
1640
1635
*/
1641
- private Writer newXrefWriter (AbstractAnalyzer fa , String path )
1642
- throws IOException {
1636
+ private Writer newXrefWriter (String path ) throws IOException {
1643
1637
RuntimeEnvironment env = RuntimeEnvironment .getInstance ();
1644
- if (env .isGenerateHtml () && isXrefWriter ( fa ) ) {
1638
+ if (env .isGenerateHtml ()) {
1645
1639
boolean compressed = env .isCompressXref ();
1646
1640
File xrefFile = whatXrefFile (path , compressed );
1647
1641
File parentFile = xrefFile .getParentFile ();
@@ -1721,7 +1715,7 @@ private boolean checkSettings(File file,
1721
1715
String path ) throws IOException {
1722
1716
1723
1717
RuntimeEnvironment env = RuntimeEnvironment .getInstance ();
1724
- boolean outIsXrefWriter = false ;
1718
+ boolean outIsXrefWriter = false ; // potential xref writer
1725
1719
int reqTabSize = project != null && project .hasTabSizeSetting () ?
1726
1720
project .getTabSize () : 0 ;
1727
1721
Integer actTabSize = settings .getTabSize ();
@@ -1799,7 +1793,7 @@ private boolean checkSettings(File file,
1799
1793
}
1800
1794
1801
1795
if (fa != null ) {
1802
- outIsXrefWriter = isXrefWriter ( fa ) ;
1796
+ outIsXrefWriter = true ;
1803
1797
}
1804
1798
1805
1799
// The versions checks have passed.
0 commit comments