- Timestamp:
- 2021-09-11T14:11:31+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/DocumentAction.java
r32546 r35363 1477 1477 if (phrase_query_term_variants_hierarchy.size() ==0) { 1478 1478 for (int i = 0; i < word_matches.size(); i++) { 1479 highlight_start_positions.add( new Integer(word_matches.get(i).start_position));1480 highlight_end_positions.add( new Integer(word_matches.get(i).end_position));1479 highlight_start_positions.add(Integer.valueOf(word_matches.get(i).start_position)); 1480 highlight_end_positions.add(Integer.valueOf(word_matches.get(i).end_position)); 1481 1481 } 1482 1482 } … … 1517 1517 } 1518 1518 1519 highlight_start_positions.add( new Integer(partial_phrase_match.start_position));1520 highlight_end_positions.add( new Integer(word_match.end_position));1519 highlight_start_positions.add(Integer.valueOf(partial_phrase_match.start_position)); 1520 highlight_end_positions.add(Integer.valueOf(word_match.end_position)); 1521 1521 } 1522 1522 // No, but add the partial match back into the list for next time … … 1544 1544 if (phrase_query_p_term_variants_list.size() == 1) 1545 1545 { 1546 highlight_start_positions.add( new Integer(word_match.start_position));1547 highlight_end_positions.add( new Integer(word_match.end_position));1546 highlight_start_positions.add(Integer.valueOf(word_match.start_position)); 1547 highlight_end_positions.add(Integer.valueOf(word_match.end_position)); 1548 1548 } 1549 1549 // Otherwise we have the start of a potential phrase match
Note:
See TracChangeset
for help on using the changeset viewer.