RFR: 8313693: Introduce an internal utility for the Damerau–Levenshtein distance calculation [v2]

Pavel Rappo prappo at openjdk.org
Fri Aug 4 15:57:54 UTC 2023


On Fri, 4 Aug 2023 15:45:51 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

>> Pavel Rappo has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Feedback
>
> test/langtools/tools/javac/util/StringUtilsTest.java line 62:
> 
>> 60: 
>> 61:         assertEquals(3, DamerauLevenshteinDistance.of("kitten", "sitting"));
>> 62:         // note that the unrestricted Damerau-Levenshtein distance would be 3, not 2:
> 
> I think the "unrestricted" in this comment should instead be "restricted".

Fixed; thanks!

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/15157#discussion_r1284590504


More information about the compiler-dev mailing list