File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/analysis Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5959public class FileAnalyzer extends AbstractAnalyzer {
6060
6161 private static final Logger LOGGER = LoggerFactory .getLogger (FileAnalyzer .class );
62+ private static final String ANALYZER_LC = "analyzer" ;
6263
6364 /**
6465 * @return {@code null} as there is no aligned language
@@ -134,10 +135,9 @@ protected FileAnalyzer(AnalyzerFactory factory,
134135 @ Override
135136 public String getFileTypeName () {
136137 String name = this .getClass ().getSimpleName ().toLowerCase (Locale .ROOT );
137- String suffix = "analyzer" ;
138138
139- if (name .endsWith (suffix )) {
140- return name .substring (0 , name .length () - suffix .length ());
139+ if (name .endsWith (ANALYZER_LC )) {
140+ return name .substring (0 , name .length () - ANALYZER_LC .length ());
141141 }
142142
143143 return name ;
You can’t perform that action at this time.
0 commit comments