Skip to content

Commit 2bb4fd9

Browse files
committed
Javadoc
1 parent 54f6443 commit 2bb4fd9

File tree

13 files changed

+45
-45
lines changed

13 files changed

+45
-45
lines changed

src/main/java/org/apache/commons/codec/binary/BaseNCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ protected static boolean isWhiteSpace(final byte byteToCheck) {
415415
* Increases our buffer by the {@link #DEFAULT_BUFFER_RESIZE_FACTOR}.
416416
*
417417
* @param context the context to be used.
418-
* @param minCapacity the minimum required capacity
418+
* @param minCapacity the minimum required capacity.
419419
* @return the resized byte[] buffer.
420420
* @throws OutOfMemoryError if the {@code minCapacity} is negative.
421421
*/

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static String crypt(final byte[] keyBytes) {
6464
* @param salt
6565
* the salt, which is used to select the algorithm, see {@link #crypt(String, String)}
6666
* The salt may be null,
67-
* in which case the method delegates to {@link Sha2Crypt#sha512Crypt(byte[])}
67+
* in which case the method delegates to {@link Sha2Crypt#sha512Crypt(byte[])}.
6868
*
6969
* @return hash value.
7070
* @throws IllegalArgumentException
@@ -162,12 +162,12 @@ public static String crypt(final String key) {
162162
* plaintext password as entered by the used.
163163
* @param salt
164164
* real salt value without prefix or "rounds=". The salt may be null, in which case a
165-
* salt is generated for you using {@link SecureRandom}
166-
* @return hash value, i.e. encrypted password including the salt string
165+
* salt is generated for you using {@link SecureRandom}.
166+
* @return hash value, i.e. encrypted password including the salt string.
167167
* @throws IllegalArgumentException
168168
* if the salt does not match the allowed pattern.
169169
* @throws IllegalArgumentException
170-
* when a {@link java.security.NoSuchAlgorithmException} is caught. *
170+
* when a {@link java.security.NoSuchAlgorithmException} is caught.
171171
*/
172172
public static String crypt(final String key, final String salt) {
173173
return crypt(key.getBytes(StandardCharsets.UTF_8), salt);

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ public static String shake256_512Hex(final String data) {
14141414
* Updates the given {@link MessageDigest}.
14151415
*
14161416
* @param messageDigest the {@link MessageDigest} to update.
1417-
* @param valueToDigest the value to update the {@link MessageDigest} with
1417+
* @param valueToDigest the value to update the {@link MessageDigest} with.
14181418
* @return the updated {@link MessageDigest}.
14191419
* @since 1.7
14201420
*/
@@ -1427,7 +1427,7 @@ public static MessageDigest updateDigest(final MessageDigest messageDigest, fina
14271427
* Updates the given {@link MessageDigest}.
14281428
*
14291429
* @param messageDigest the {@link MessageDigest} to update.
1430-
* @param valueToDigest the value to update the {@link MessageDigest} with
1430+
* @param valueToDigest the value to update the {@link MessageDigest} with.
14311431
* @return the updated {@link MessageDigest}.
14321432
* @since 1.11
14331433
*/
@@ -1440,7 +1440,7 @@ public static MessageDigest updateDigest(final MessageDigest messageDigest, fina
14401440
* Reads through a File and updates the digest for the data
14411441
*
14421442
* @param digest The MessageDigest to use (for example MD5).
1443-
* @param data Data to digest
1443+
* @param data Data to digest.
14441444
* @return the digest.
14451445
* @throws IOException On error reading from the stream.
14461446
* @since 1.11
@@ -1455,7 +1455,7 @@ public static MessageDigest updateDigest(final MessageDigest digest, final File
14551455
* TODO Decide if this should be public.
14561456
*
14571457
* @param digest The MessageDigest to use (for example MD5).
1458-
* @param data Data to digest
1458+
* @param data Data to digest.
14591459
* @return the digest.
14601460
* @throws IOException On error reading from the stream.
14611461
* @since 1.14
@@ -1474,7 +1474,7 @@ private static MessageDigest updateDigest(final MessageDigest digest, final File
14741474
* Reads through an InputStream and updates the digest for the data
14751475
*
14761476
* @param digest The MessageDigest to use (for example MD5).
1477-
* @param inputStream Data to digest
1477+
* @param inputStream Data to digest.
14781478
* @return the digest.
14791479
* @throws IOException On error reading from the stream.
14801480
* @since 1.8
@@ -1493,7 +1493,7 @@ public static MessageDigest updateDigest(final MessageDigest digest, final Input
14931493
* Reads through a Path and updates the digest for the data
14941494
*
14951495
* @param digest The MessageDigest to use (for example MD5).
1496-
* @param path Data to digest
1496+
* @param path Data to digest.
14971497
* @param options options How to open the file.
14981498
* @return the digest.
14991499
* @throws IOException On error reading from the stream.
@@ -1509,7 +1509,7 @@ public static MessageDigest updateDigest(final MessageDigest digest, final Path
15091509
* Reads through a RandomAccessFile and updates the digest for the data using non-blocking-io (NIO)
15101510
*
15111511
* @param digest The MessageDigest to use (for example MD5).
1512-
* @param data Data to digest
1512+
* @param data Data to digest.
15131513
* @return the digest.
15141514
* @throws IOException On error reading from the stream.
15151515
* @since 1.14
@@ -1526,7 +1526,7 @@ public static MessageDigest updateDigest(final MessageDigest digest, final Rando
15261526
* {@link String#getBytes(java.nio.charset.Charset)} and pass that to the {@link DigestUtils#updateDigest(MessageDigest, byte[])} method
15271527
*
15281528
* @param messageDigest the {@link MessageDigest} to update.
1529-
* @param valueToDigest the value to update the {@link MessageDigest} with; converted to bytes using {@link StringUtils#getBytesUtf8(String)}
1529+
* @param valueToDigest the value to update the {@link MessageDigest} with; converted to bytes using {@link StringUtils#getBytesUtf8(String)}.
15301530
* @return the updated {@link MessageDigest}.
15311531
* @since 1.7
15321532
*/
@@ -1623,7 +1623,7 @@ public byte[] digest(final InputStream data) throws IOException {
16231623
* Reads through a File and returns the digest for the data
16241624
*
16251625
* @param data Data to digest.
1626-
* @param options options How to open the file
1626+
* @param options options How to open the file.
16271627
* @return the digest.
16281628
* @throws IOException On error reading from the stream.
16291629
* @since 1.14
@@ -1693,7 +1693,7 @@ public String digestAsHex(final InputStream data) throws IOException {
16931693
* Reads through a File and returns the digest for the data
16941694
*
16951695
* @param data Data to digest.
1696-
* @param options options How to open the file
1696+
* @param options options How to open the file.
16971697
* @return the digest as a hexadecimal string.
16981698
* @throws IOException On error reading from the stream.
16991699
* @since 1.11

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public static byte[] hmacSha1(final byte[] key, final byte[] valueToDigest) {
304304
* @param key The key for the keyed digest (must not be null).
305305
* @param valueToDigest The value (data) which should to digest
306306
* <p>
307-
* The InputStream must not be null and will not be closed
307+
* The InputStream must not be null and will not be closed.
308308
* </p>
309309
* @return HmacSHA1 MAC for the given key and value.
310310
* @throws IOException If an I/O error occurs.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class Md5Crypt {
7373
*
7474
* @param keyBytes plaintext string to hash. Each array element is set to {@code 0} before returning.
7575
* @return the hash value.
76-
* @throws IllegalArgumentException when a {@link java.security.NoSuchAlgorithmException} is caught. *
76+
* @throws IllegalArgumentException when a {@link java.security.NoSuchAlgorithmException} is caught.
7777
* @see #apr1Crypt(byte[], String)
7878
*/
7979
public static String apr1Crypt(final byte[] keyBytes) {
@@ -90,7 +90,7 @@ public static String apr1Crypt(final byte[] keyBytes) {
9090
* @param random the instance of {@link Random} to use for generating the salt.
9191
* Consider using {@link SecureRandom} for more secure salts.
9292
* @return the hash value.
93-
* @throws IllegalArgumentException when a {@link java.security.NoSuchAlgorithmException} is caught. *
93+
* @throws IllegalArgumentException when a {@link java.security.NoSuchAlgorithmException} is caught.
9494
* @see #apr1Crypt(byte[], String)
9595
* @since 1.12
9696
*/
@@ -108,7 +108,7 @@ public static String apr1Crypt(final byte[] keyBytes, final Random random) {
108108
* plaintext string to hash. Each array element is set to {@code 0} before returning.
109109
* @param salt
110110
* An APR1 salt. The salt may be null, in which case a salt is generated for you using
111-
* {@link SecureRandom}
111+
* {@link SecureRandom}.
112112
* @return the hash value.
113113
* @throws IllegalArgumentException
114114
* if the salt does not match the allowed pattern.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class MurmurHash {
2626
* Gets the little-endian int from 4 bytes starting at the specified index.
2727
*
2828
* @param data The data.
29-
* @param index The index
29+
* @param index The index.
3030
* @return The little-endian int.
3131
*/
3232
static int getLittleEndianInt(final byte[] data, final int index) {
@@ -42,7 +42,7 @@ static int getLittleEndianInt(final byte[] data, final int index) {
4242
* Gets the little-endian long from 8 bytes starting at the specified index.
4343
*
4444
* @param data The data.
45-
* @param index The index
45+
* @param index The index.
4646
* @return The little-endian long.
4747
*/
4848
static long getLittleEndianLong(final byte[] data, final int index) {

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public final class MurmurHash2 {
6868
* </pre>
6969
*
7070
* @param data The input byte array.
71-
* @param length The length of the array
71+
* @param length The length of the array.
7272
* @return The 32-bit hash.
7373
* @see #hash32(byte[], int, int)
7474
*/
@@ -80,7 +80,7 @@ public static int hash32(final byte[] data, final int length) {
8080
* Generates a 32-bit hash from byte array with the given length and seed.
8181
*
8282
* @param data The input byte array.
83-
* @param length The length of the array
83+
* @param length The length of the array.
8484
* @param seed The initial seed value.
8585
* @return The 32-bit hash.
8686
*/
@@ -155,7 +155,7 @@ public static int hash32(final String text) {
155155
* </pre>
156156
*
157157
* @param text The input string.
158-
* @param from The starting index
158+
* @param from The starting index.
159159
* @param length The length of the substring.
160160
* @return The 32-bit hash.
161161
* @see #hash32(byte[], int, int)
@@ -186,7 +186,7 @@ public static long hash64(final byte[] data, final int length) {
186186
* Generates a 64-bit hash from byte array of the given length and seed.
187187
*
188188
* @param data The input byte array.
189-
* @param length The length of the array
189+
* @param length The length of the array.
190190
* @param seed The initial seed value.
191191
* @return The 64-bit hash of the given array.
192192
*/
@@ -272,7 +272,7 @@ public static long hash64(final String text) {
272272
* </pre>
273273
*
274274
* @param text The input string.
275-
* @param from The starting index
275+
* @param from The starting index.
276276
* @param length The length of the substring.
277277
* @return The 64-bit hash.
278278
* @see #hash64(byte[], int, int)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public static String sha256Crypt(final byte[] keyBytes, String salt, final Rando
144144
* @param salt real salt value without prefix or {@code "rounds="}; may not be null.
145145
* @param saltPrefix either {@code $5$} or {@code $6$}.
146146
* @param blocksize a value that differs between {@code $5${@code and {@code $6$}.
147-
* @param algorithm {@link MessageDigest} algorithm identifier string
147+
* @param algorithm {@link MessageDigest} algorithm identifier string.
148148
* @return The Complete hash value including prefix and salt.
149149
* @throws IllegalArgumentException Thrown if the given salt is {@code null} or does not match the allowed pattern.
150150
* @throws IllegalArgumentException Thrown if a {@link NoSuchAlgorithmException} is caught.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public boolean isConcat() {
142142
*
143143
* @param concat
144144
* true if multiple encodings are to be combined with a '|', false if just the first one is
145-
* to be considered
145+
* to be considered.
146146
*/
147147
public void setConcat(final boolean concat) {
148148
this.engine = new PhoneticEngine(this.engine.getNameType(),

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public boolean isFound() {
248248
* Joins some strings with an internal separator.
249249
*
250250
* @param strings Strings to join.
251-
* @param sep String to separate them with
251+
* @param sep String to separate them with.
252252
* @return a single String consisting of each element of {@code strings} interleaved by {@code sep}.
253253
*/
254254
private static String join(final List<String> strings, final String sep) {
@@ -271,7 +271,7 @@ private static String join(final List<String> strings, final String sep) {
271271
* @param nameType
272272
* the type of names it will use.
273273
* @param ruleType
274-
* the type of rules it will apply
274+
* the type of rules it will apply.
275275
* @param concatenate
276276
* if it will concatenate multiple encodings.
277277
*/
@@ -285,11 +285,11 @@ public PhoneticEngine(final NameType nameType, final RuleType ruleType, final bo
285285
* @param nameType
286286
* the type of names it will use.
287287
* @param ruleType
288-
* the type of rules it will apply
288+
* the type of rules it will apply.
289289
* @param concatenate
290290
* if it will concatenate multiple encodings.
291291
* @param maxPhonemes
292-
* the maximum number of phonemes that will be handled
292+
* the maximum number of phonemes that will be handled.
293293
* @since 1.7
294294
*/
295295
public PhoneticEngine(final NameType nameType, final RuleType ruleType, final boolean concatenate, final int maxPhonemes) {
@@ -308,7 +308,7 @@ public PhoneticEngine(final NameType nameType, final RuleType ruleType, final bo
308308
* language-independent representation.
309309
*
310310
* @param phonemeBuilder the current phonemes.
311-
* @param finalRules the final rules to apply
311+
* @param finalRules the final rules to apply.
312312
* @return the resulting phonemes.
313313
*/
314314
private PhonemeBuilder applyFinalRules(final PhonemeBuilder phonemeBuilder,
@@ -372,9 +372,9 @@ public String encode(final String input) {
372372
* @param input
373373
* String to phoneticise; a String with dashes or spaces separating each word.
374374
* @param languageSet
375-
* set of possible origin languages
375+
* set of possible origin languages.
376376
* @return a phonetic representation of the input; a String containing '-'-separated phonetic representations of the
377-
* input
377+
* input.
378378
*/
379379
public String encode(String input, final Languages.LanguageSet languageSet) {
380380
final Map<String, List<Rule>> rules = Rule.getInstanceMap(this.nameType, RuleType.RULES, languageSet);

0 commit comments

Comments
 (0)