Skip to content

Commit c0fdc94

Browse files
committed
Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1744724 13f79535-47bb-0310-9956-ffa450edef68
1 parent 61994fe commit c0fdc94

5 files changed

Lines changed: 8 additions & 12 deletions

File tree

src/main/java/org/apache/commons/codec/cli/Digest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class Digest {
4747
* {@code args[0]} is one of {@link MessageDigestAlgorithms} name, {@link MessageDigest} name, {@code ALL}
4848
* , or {@code *}.
4949
* {@code args[1+]} is a FILE/DIRECTORY/String.
50-
* @throws IOException
50+
* @throws IOException if an error occurs
5151
*/
5252
public static void main(String[] args) throws IOException {
5353
new Digest(args).run();

src/main/java/org/apache/commons/codec/digest/DigestUtils.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,12 @@
4141
* Note: the class has short-hand methods for all the algorithms present as standard in Java 6.
4242
* This approach requires lots of methods for each algorithm, and quickly becomes unwieldy.
4343
* The following code works with all algorithms:
44-
* <code>
4544
* <pre>
4645
* import static org.apache.commons.codec.digest.MessageDigestAlgorithms.SHA_224;
4746
* ...
4847
* byte [] digest = DigestUtils.with(SHA_224).update(dataToDigest).done();
4948
* String hdigest = DigestUtils.with(SHA_224).update(new File("pom.xml")).asHex();
5049
* </pre>
51-
* </code>
5250
* @see MessageDigestAlgorithms
5351
* @version $Id$
5452
*/
@@ -64,8 +62,6 @@ public class DigestUtils {
6462
* @param data
6563
* Data to digest
6664
* @return the digest
67-
* @throws IOException
68-
* On error reading from the stream
6965
* @since 1.11
7066
*/
7167
public static byte[] digest(final MessageDigest messageDigest, final byte[] data) {
@@ -979,7 +975,7 @@ private DigestUtils(MessageDigest digest) {
979975
* Returns a fluent instance for the digest algorithm.
980976
* Does not reset the digest before use.
981977
* @param digest the digest instance to use
982-
* @return
978+
* @return the fluent instance
983979
*/
984980
public static DigestUtils with(MessageDigest digest) {
985981
return new DigestUtils(digest);
@@ -989,7 +985,7 @@ public static DigestUtils with(MessageDigest digest) {
989985
* Creates a {@link MessageDigest} and returns a fluent instance.
990986
*
991987
* @param name the name of digest algorithm to create, e.g. {@link MessageDigestAlgorithms#MD5}
992-
* @return
988+
* @return the fluent instance
993989
*/
994990
public static DigestUtils with(String name) {
995991
return new DigestUtils(getDigest(name));

src/main/java/org/apache/commons/codec/digest/HmacUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public static Mac getHmacSha512(final byte[] key) {
178178
* @see Mac#init(Key)
179179
* @throws IllegalArgumentException
180180
* when a {@link NoSuchAlgorithmException} is caught or key is null or key is invalid.
181-
* @deprecated Use {@link HmacAlgorithms#getInitializedMac(byte[])}.
181+
* @deprecated Use {@link HmacAlgorithms#getHmac(byte[])}.
182182
*/
183183
@Deprecated
184184
public static Mac getInitializedMac(final HmacAlgorithms algorithm, final byte[] key) {
@@ -873,7 +873,7 @@ private HmacUtils(final Mac mac) {
873873
* key must be provided using the {@link #key(byte[])} method
874874
* before it can be used further.
875875
*
876-
* @param algorithm to be used.
876+
* @param mac the {@link Mac} to be used.
877877
* @return the instance
878878
* @since 1.11
879879
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ boolean isVowel(final String letter) {
288288
*
289289
* @param name1
290290
* name2
291-
* @return
291+
* @return the length as above
292292
*/
293293
int leftToRightThenRightToLeftProcessing(final String name1, final String name2) {
294294
final char[] name1Char = name1.toCharArray();

src/main/java/org/apache/commons/codec/language/bm/BeiderMorseEncoder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@
6666
* splitting on pipe (<code>|</code>) and indexing under each of these alternatives.
6767
* <p>
6868
* <b>Note</b>: this version of the Beider-Morse encoding is equivalent with v3.4 of the reference implementation.
69-
*
69+
* </p>
7070
* @see <a href="http://stevemorse.org/phonetics/bmpm.htm">Beider-Morse Phonetic Matching</a>
7171
* @see <a href="http://stevemorse.org/phoneticinfo.htm">Reference implementation</a>
7272
*
7373
* <p>
7474
* This class is Not ThreadSafe
75-
*
75+
* </p>
7676
* @since 1.6
7777
* @version $Id$
7878
*/

0 commit comments

Comments
 (0)