pmd/pmd-core
Juan Martín Sotuyo Dodero f9cb7ab992 Ensure CPD matches are nonoverlapping maximals
- The old implementation would fail on scenarios where duplicates
   exceed the minimum token window. In general, if we have 20 identical
   tokens, 1 different, and then the same 20 again, CPD would find the
   20 at the beginning match the last 20… but also the 19 at the
   beginning match the last 19, the 18 at the beggining… down to the
   windows size
2024-04-17 20:10:40 -03:00
..