File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/analysis Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -126,23 +126,21 @@ public enum tagFields {
126
126
* <p>TODO:
127
127
* <p>NOTE this is a big tradeoff in terms of input data, e.g. field
128
128
* "find" will be considered "file" and overwrite the value, so if
129
- * ctags will send us buggy input. We will output buggy data TOO! NO
130
- * VALIDATION happens of input - but then we gain LOTS of speed, due to
129
+ * ctags will send us buggy input, we will output buggy data TOO!
130
+ * NO VALIDATION happens of input - but then we gain LOTS of speed, due to
131
131
* not comparing the same field names again and again fully.
132
132
*/
133
- public static int charCmpEndOffset = 0 ;
133
+ private static final int CHAR_CMP_END_OFFSET = 0 ;
134
134
135
135
/**
136
136
* Quickly get if the field name matches allowed/consumed ones.
137
137
* @param fullName the name to look up
138
138
* @return a defined value, or null if unmatched
139
139
*/
140
140
public static CtagsReader .tagFields quickValueOf (String fullName ) {
141
- int i ;
142
- boolean match ;
143
141
for (tagFields x : tagFields .values ()) {
144
- match = true ;
145
- for (i = 0 ; i <= charCmpEndOffset ; i ++) {
142
+ boolean match = true ;
143
+ for (int i = 0 ; i <= CHAR_CMP_END_OFFSET ; i ++) {
146
144
if (x .name .charAt (i ) != fullName .charAt (i )) {
147
145
match = false ;
148
146
break ;
You can’t perform that action at this time.
0 commit comments