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 59
59
public class FileAnalyzer extends AbstractAnalyzer {
60
60
61
61
private static final Logger LOGGER = LoggerFactory .getLogger (FileAnalyzer .class );
62
+ private static final String ANALYZER_LC = "analyzer" ;
62
63
63
64
/**
64
65
* @return {@code null} as there is no aligned language
@@ -134,10 +135,9 @@ protected FileAnalyzer(AnalyzerFactory factory,
134
135
@ Override
135
136
public String getFileTypeName () {
136
137
String name = this .getClass ().getSimpleName ().toLowerCase (Locale .ROOT );
137
- String suffix = "analyzer" ;
138
138
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 ());
141
141
}
142
142
143
143
return name ;
You can’t perform that action at this time.
0 commit comments