Skip to content

Commit c664c6a

Browse files
committed
Better Javadoc
1 parent 299d22b commit c664c6a

7 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/main/java/org/apache/commons/codec/language/AbstractCaverphone.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ public abstract class AbstractCaverphone implements StringEncoder {
3535

3636
/**
3737
* Encodes an Object using the caverphone algorithm. This method is provided in order to satisfy the requirements of
38-
* the Encoder interface, and will throw an EncoderException if the supplied object is not of type java.lang.String.
38+
* the Encoder interface, and will throw an EncoderException if the supplied object is not of type {@link String}.
3939
*
4040
* @param source
4141
* Object to encode
42-
* @return An object (or type java.lang.String) containing the caverphone code which corresponds to the String
42+
* @return An object (or type {@link String}) containing the caverphone code which corresponds to the String
4343
* supplied.
4444
* @throws EncoderException
45-
* if the parameter supplied is not of type java.lang.String
45+
* if the parameter supplied is not of type {@link String}.
4646
*/
4747
@Override
4848
public Object encode(final Object source) throws EncoderException {

src/main/java/org/apache/commons/codec/language/Caverphone.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ public String caverphone(final String source) {
5252

5353
/**
5454
* Encodes an Object using the caverphone algorithm. This method is provided in order to satisfy the requirements of
55-
* the Encoder interface, and will throw an EncoderException if the supplied object is not of type java.lang.String.
55+
* the Encoder interface, and will throw an EncoderException if the supplied object is not of type {@link String}.
5656
*
5757
* @param obj
5858
* Object to encode
59-
* @return An object (or type java.lang.String) containing the caverphone code which corresponds to the String
59+
* @return An object (or type {@link String}) containing the caverphone code which corresponds to the String
6060
* supplied.
6161
* @throws EncoderException
62-
* if the parameter supplied is not of type java.lang.String
62+
* if the parameter supplied is not of type {@link String}.
6363
*/
6464
@Override
6565
public Object encode(final Object obj) throws EncoderException {

src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,17 +375,17 @@ private String cleanup(final String input) {
375375
* Encodes an Object using the Daitch-Mokotoff soundex algorithm without branching.
376376
* <p>
377377
* This method is provided in order to satisfy the requirements of the Encoder interface, and will throw an
378-
* EncoderException if the supplied object is not of type java.lang.String.
378+
* EncoderException if the supplied object is not of type {@link String}.
379379
* </p>
380380
*
381381
* @see #soundex(String)
382382
*
383383
* @param obj
384384
* Object to encode
385-
* @return An object (of type java.lang.String) containing the DM soundex code, which corresponds to the String
385+
* @return An object (of type {@link String}) containing the DM soundex code, which corresponds to the String
386386
* supplied.
387387
* @throws EncoderException
388-
* if the parameter supplied is not of type java.lang.String
388+
* if the parameter supplied is not of type {@link String}
389389
* @throws IllegalArgumentException
390390
* if a character is not mapped
391391
*/

src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ String cleanName(final String name) {
9191

9292
/**
9393
* Encodes an Object using the Match Rating Approach algorithm. Method is here to satisfy the requirements of the
94-
* Encoder interface Throws an EncoderException if input object is not of type java.lang.String.
94+
* Encoder interface Throws an EncoderException if input object is not of type {@link String}.
9595
*
9696
* @param pObject
9797
* Object to encode
98-
* @return An object (or type java.lang.String) containing the Match Rating Approach code which corresponds to the
98+
* @return An object (or type {@link String}) containing the Match Rating Approach code which corresponds to the
9999
* String supplied.
100100
* @throws EncoderException
101-
* if the parameter supplied is not of type java.lang.String
101+
* if the parameter supplied is not of type {@link String}
102102
*/
103103
@Override
104104
public final Object encode(final Object pObject) throws EncoderException {

src/main/java/org/apache/commons/codec/language/Metaphone.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ public class Metaphone implements StringEncoder {
7878
* Encodes an Object using the metaphone algorithm. This method
7979
* is provided in order to satisfy the requirements of the
8080
* Encoder interface, and will throw an EncoderException if the
81-
* supplied object is not of type java.lang.String.
81+
* supplied object is not of type {@link String}.
8282
*
8383
* @param obj Object to encode
84-
* @return An object (or type java.lang.String) containing the
84+
* @return An object (or type {@link String}) containing the
8585
* metaphone code which corresponds to the String supplied.
8686
* @throws EncoderException if the parameter supplied is not
87-
* of type java.lang.String
87+
* of type {@link String}
8888
*/
8989
@Override
9090
public Object encode(final Object obj) throws EncoderException {

src/main/java/org/apache/commons/codec/language/RefinedSoundex.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ public int difference(final String s1, final String s2) throws EncoderException
131131
* Encodes an Object using the refined soundex algorithm. This method is
132132
* provided in order to satisfy the requirements of the Encoder interface,
133133
* and will throw an EncoderException if the supplied object is not of type
134-
* java.lang.String.
134+
* {@link String}.
135135
*
136136
* @param obj
137137
* Object to encode
138-
* @return An object (or type java.lang.String) containing the refined
138+
* @return An object (or type {@link String}) containing the refined
139139
* soundex code which corresponds to the String supplied.
140140
* @throws EncoderException
141-
* if the parameter supplied is not of type java.lang.String
141+
* if the parameter supplied is not of type {@link String}
142142
*/
143143
@Override
144144
public Object encode(final Object obj) throws EncoderException {

src/main/java/org/apache/commons/codec/language/Soundex.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,14 @@ public int difference(final String s1, final String s2) throws EncoderException
219219

220220
/**
221221
* Encodes an Object using the soundex algorithm. This method is provided in order to satisfy the requirements of
222-
* the Encoder interface, and will throw an EncoderException if the supplied object is not of type java.lang.String.
222+
* the Encoder interface, and will throw an EncoderException if the supplied object is not of type {@link String}.
223223
*
224224
* @param obj
225225
* Object to encode
226-
* @return An object (or type java.lang.String) containing the soundex code which corresponds to the String
226+
* @return An object (or type {@link String}) containing the soundex code which corresponds to the String
227227
* supplied.
228228
* @throws EncoderException
229-
* if the parameter supplied is not of type java.lang.String
229+
* if the parameter supplied is not of type {@link String}
230230
* @throws IllegalArgumentException
231231
* if a character is not mapped
232232
*/

0 commit comments

Comments
 (0)