Changeset 14373 in josm for trunk/src


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

see #15889 - deprecate SimilarNamedWays.getLevenshteinDistance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/SimilarNamedWays.java

    r14371 r14373  
    111111
    112112    /**
     113     * Compute Levenshtein distance
     114     *
     115     * @param s First word
     116     * @param t Second word
     117     * @return The distance between words
     118     * @deprecated Use {@link Utils#getLevenshteinDistance} instead
     119     */
     120    @Deprecated
     121    public static int getLevenshteinDistance(String s, String t) {
     122        return Utils.getLevenshteinDistance(s, t);
     123    }
     124
     125    /**
    113126     * Add a regular expression rule.
    114127     * @param regExpr the regular expression to search for
Note: See TracChangeset for help on using the changeset viewer.