This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-codec.git
The following commit(s) were added to refs/heads/master by this push: new 6b634fe No need to initialize to default. 6b634fe is described below commit 6b634fe49d399184214ec951537ad0bd1f11e6c4 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Nov 20 18:21:43 2020 -0500 No need to initialize to default. --- .../org/apache/commons/codec/language/MatchRatingApproachEncoder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java b/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java index be9647a..9cba4a6 100644 --- a/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java +++ b/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java @@ -247,8 +247,7 @@ public class MatchRatingApproachEncoder implements StringEncoder { // 5. Obtain the minimum rating value by calculating the length sum of the // encoded Strings and sending it down. final int sumLength = Math.abs(name1.length() + name2.length()); - int minRating = 0; - minRating = getMinRating(sumLength); + int minRating = getMinRating(sumLength); // 6. Process the encoded Strings from left to right and remove any // identical characters found from both Strings respectively.