Skip to content

Commit 685da72

Browse files
committed
Javadoc
1 parent 1dd5be3 commit 685da72

File tree

9 files changed

+14
-16
lines changed

9 files changed

+14
-16
lines changed

src/main/java/org/apache/commons/text/diff/CommandVisitor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
package org.apache.commons.text.diff;
1818

1919
/**
20-
* This interface should be implemented by user object to walk
21-
* through {@link EditScript EditScript} objects.
20+
* Walks through {@link EditScript EditScript} objects.
2221
* <p>
2322
* Users should implement this interface in order to walk through
2423
* the {@link EditScript EditScript} object created by the comparison

src/main/java/org/apache/commons/text/diff/EditScript.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import java.util.List;
2121

2222
/**
23-
* This class gathers all the {@link EditCommand commands} needed to transform
23+
* Gathers all the {@link EditCommand commands} needed to transform
2424
* one objects sequence into another objects sequence.
2525
* <p>
2626
* An edit script is the most general view of the differences between two

src/main/java/org/apache/commons/text/diff/ReplacementsFinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import java.util.List;
2121

2222
/**
23-
* This class handles sequences of replacements resulting from a comparison.
23+
* Handles sequences of replacements resulting from a comparison.
2424
* <p>
2525
* The comparison of two objects sequences leads to the identification of common
2626
* parts and parts which only belong to the first or to the second sequence. The

src/main/java/org/apache/commons/text/diff/ReplacementsHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.util.List;
2020

2121
/**
22-
* This interface is devoted to handle synchronized replacement sequences.
22+
* Handles synchronized replacement sequences.
2323
*
2424
* @param <T> object type
2525
* @see ReplacementsFinder

src/main/java/org/apache/commons/text/diff/StringsComparator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
public class StringsComparator {
5454

5555
/**
56-
* This class is a simple placeholder to hold the end part of a path
57-
* under construction in a {@link StringsComparator StringsComparator}.
56+
* Holds the end part of a path under construction in a {@link StringsComparator StringsComparator}.
5857
*/
5958
private static final class Snake {
6059

src/main/java/org/apache/commons/text/similarity/FuzzyScore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class FuzzyScore {
4141
private final Locale locale;
4242

4343
/**
44-
* This returns a {@link Locale}-specific {@link FuzzyScore}.
44+
* Constructs a new instance for a {@link Locale}-specific {@link FuzzyScore}.
4545
*
4646
* @param locale The string matching logic is case insensitive. A {@link Locale} is necessary to normalize both Strings to lower case.
4747
* @throws IllegalArgumentException This is thrown if the {@link Locale} parameter is {@code null}.

src/main/java/org/apache/commons/text/similarity/LevenshteinDetailedDistance.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,7 @@ private static <E> LevenshteinResults unlimitedCompare(SimilarityInput<E> left,
380380
private final Integer threshold;
381381

382382
/**
383-
* <p>
384-
* This returns the default instance that uses a version of the algorithm that does not use a threshold parameter.
385-
* </p>
383+
* Constructs a new instance that uses a version of the algorithm that does not use a threshold parameter.
386384
*
387385
* @see LevenshteinDetailedDistance#getDefaultInstance()
388386
* @deprecated Use {@link #getDefaultInstance()}.
@@ -393,8 +391,10 @@ public LevenshteinDetailedDistance() {
393391
}
394392

395393
/**
394+
* Constructs a new instance for a threshold.
395+
* <p>
396396
* If the threshold is not null, distance calculations will be limited to a maximum length.
397-
*
397+
* </p>
398398
* <p>
399399
* If the threshold is null, the unlimited version of the algorithm will be used.
400400
* </p>

src/main/java/org/apache/commons/text/similarity/SimilarityScoreFrom.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.apache.commons.lang3.Validate;
2020

2121
/**
22-
* This stores a {@link SimilarityScore} implementation and a {@link CharSequence} "left" string.
22+
* Stores a {@link SimilarityScore} implementation and a {@link CharSequence} "left" string.
2323
* The {@link #apply(CharSequence right)} method accepts the "right" string and invokes the
2424
* comparison function for the pair of strings.
2525
*
@@ -63,7 +63,7 @@ public class SimilarityScoreFrom<R> {
6363
private final CharSequence left;
6464

6565
/**
66-
* This accepts the similarity score implementation and the "left" string.
66+
* Constructs a new instance for a similarity score implementation and the "left" string.
6767
*
6868
* @param similarityScore This may not be null.
6969
* @param left This may be null here,
@@ -78,7 +78,7 @@ public SimilarityScoreFrom(final SimilarityScore<R> similarityScore, final CharS
7878
}
7979

8080
/**
81-
* This compares "left" field against the "right" parameter
81+
* Compares "left" field against the "right" parameter
8282
* using the "similarity score" implementation.
8383
*
8484
* @param right the second CharSequence.

src/main/java/org/apache/commons/text/translate/CsvTranslators.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.apache.commons.lang3.Strings;
2525

2626
/**
27-
* This class holds inner classes for escaping/unescaping Comma Separated Values.
27+
* Holds inner classes for escaping/unescaping Comma Separated Values.
2828
* <p>
2929
* In general the use a high level API like <a href="https://commons.apache.org/proper/commons-csv/">Apache Commons
3030
* CSV</a> should be preferred over these low level classes.

0 commit comments

Comments
 (0)