Changeset 14373 in josm for trunk/scripts


Ignore:
Timestamp:
2018-10-27T15:41:32+02:00 (6 years ago)
Author:
simon04
Message:

see #15889 - deprecate SimilarNamedWays.getLevenshteinDistance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/I18nSimilarStrings.java

    r14138 r14373  
    66import org.openstreetmap.josm.data.preferences.JosmBaseDirectories;
    77import org.openstreetmap.josm.data.preferences.JosmUrls;
    8 import org.openstreetmap.josm.data.validation.tests.SimilarNamedWays;
    98import org.openstreetmap.josm.gui.MainApplicationTest;
    109import org.openstreetmap.josm.plugins.PluginHandlerTestIT;
    1110import org.openstreetmap.josm.spi.preferences.Config;
    1211import org.openstreetmap.josm.tools.I18n;
     12import org.openstreetmap.josm.tools.Utils;
    1313
    1414// License: GPL. For details, see LICENSE file.
     
    4545                String a = strings.get(i);
    4646                String b = strings.get(j);
    47                 int d = SimilarNamedWays.getLevenshteinDistance(a, b);
     47                int d = Utils.getLevenshteinDistance(a, b);
    4848                if (d <= 2) {
    4949                    System.err.println(": " + a + " <--> " + b);
Note: See TracChangeset for help on using the changeset viewer.