Skip to content

Commit e1ba680

Browse files
committed
Fix malformed Javadoc comments
1 parent 021888d commit e1ba680

File tree

39 files changed

+140
-140
lines changed

39 files changed

+140
-140
lines changed

commons-rng-client-api/src/main/java/org/apache/commons/rng/UniformRandomProviderSupport.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,19 @@ static void validateRange(double origin, double bound) {
167167
* <p>The sub-range is defined to be out of bounds if any of the following inequalities
168168
* is true:
169169
* <ul>
170-
* <li>{@code fromIndex < 0}
171-
* <li>{@code size < 0}
172-
* <li>{@code fromIndex + size > length}, taking into account integer overflow
173-
* <li>{@code length < 0}, which is implied from the former inequalities
170+
* <li>{@code fromIndex < 0}</li>
171+
* <li>{@code size < 0}</li>
172+
* <li>{@code fromIndex + size > length}, taking into account integer overflow</li>
173+
* <li>{@code length < 0}, which is implied from the former inequalities</li>
174174
* </ul>
175175
*
176176
* <p>Note: This is not an exact implementation of the functionality of
177177
* {@code Objects.checkFromIndexSize}. The following changes have been made:
178178
* <ul>
179179
* <li>The method signature has been changed to avoid the return of {@code fromIndex};
180-
* this value is not used within this package.
180+
* this value is not used within this package.</li>
181181
* <li>No checks are made for {@code length < 0} as this is assumed to be derived from
182-
* an array length.
182+
* an array length.</li>
183183
* </ul>
184184
*
185185
* @param fromIndex the lower-bound (inclusive) of the sub-interval

commons-rng-core/src/main/java/org/apache/commons/rng/core/BaseProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ private static long scrambleWell(long n,
296296
* Extend the seed to the specified minimum length. If the seed is equal or greater than the
297297
* minimum length, return the same seed unchanged. Otherwise:
298298
* <ol>
299-
* <li>Create a new array of the specified length
300-
* <li>Copy all elements of the seed into the array
299+
* <li>Create a new array of the specified length</li>
300+
* <li>Copy all elements of the seed into the array</li>
301301
* <li>Fill the remaining values. The additional values will have at most one occurrence
302302
* of zero. If the original seed is all zero, the first extended value will be non-zero.
303303
* </li>
@@ -355,8 +355,8 @@ protected static long[] extendSeed(long[] seed, int length) {
355355
* Extend the seed to the specified minimum length. If the seed is equal or greater than the
356356
* minimum length, return the same seed unchanged. Otherwise:
357357
* <ol>
358-
* <li>Create a new array of the specified length
359-
* <li>Copy all elements of the seed into the array
358+
* <li>Create a new array of the specified length</li>
359+
* <li>Copy all elements of the seed into the array</li>
360360
* <li>Fill the remaining values. The additional values will have at most one occurrence
361361
* of zero. If the original seed is all zero, the first extended value will be non-zero.
362362
* </li>

commons-rng-core/src/main/java/org/apache/commons/rng/core/source32/IntProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ static void nextBytesFill(RandomIntSource source,
202202
* <p>The sub-range is defined to be out of bounds if any of the following inequalities
203203
* is true:
204204
* <ul>
205-
* <li>{@code fromIndex < 0}
206-
* <li>{@code size < 0}
207-
* <li>{@code fromIndex + size > length}, taking into account integer overflow
208-
* <li>{@code length < 0}, which is implied from the former inequalities
205+
* <li>{@code fromIndex < 0}</li>
206+
* <li>{@code size < 0}</li>
207+
* <li>{@code fromIndex + size > length}, taking into account integer overflow</li>
208+
* <li>{@code length < 0}, which is implied from the former inequalities</li>
209209
* </ul>
210210
*
211211
* @param fromIndex the lower-bound (inclusive) of the sub-interval

commons-rng-core/src/main/java/org/apache/commons/rng/core/source32/MiddleSquareWeylSequence.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ public class MiddleSquareWeylSequence extends IntProvider {
6363
* The seed elements are used to set:</p>
6464
*
6565
* <ol>
66-
* <li>The state of the generator
67-
* <li>The state of the Weyl sequence
68-
* <li>The increment of the Weyl sequence
66+
* <li>The state of the generator</li>
67+
* <li>The state of the Weyl sequence</li>
68+
* <li>The increment of the Weyl sequence</li>
6969
* </ol>
7070
*
7171
* <p>The third element is set to odd to ensure a period of at least 2<sup>64</sup>. If the

commons-rng-core/src/main/java/org/apache/commons/rng/core/util/RandomStreams.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ public static <T> Stream<T> generateWithSeed(long streamSize,
9696
* Creates a seed to prepend to a counter. The seed is created to satisfy the following
9797
* requirements:
9898
* <ul>
99-
* <li>The least significant bit is set
100-
* <li>The seed is composed of characters from an n-bit alphabet
101-
* <li>The character used in the least significant bits is unique
102-
* <li>The other characters are sampled uniformly from the remaining (n-1) characters
99+
* <li>The least significant bit is set</li>
100+
* <li>The seed is composed of characters from an n-bit alphabet</li>
101+
* <li>The character used in the least significant bits is unique</li>
102+
* <li>The other characters are sampled uniformly from the remaining (n-1) characters</li>
103103
* </ul>
104104
*
105105
* <p>The composed seed is created using {@code ((seed << shift) | count)}

commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/core/BaselineGenerationPerformance.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
* baseline will:</p>
4242
*
4343
* <ul>
44-
* <li>Run as fast as possible
45-
* <li>Not be removed from the execution path
44+
* <li>Run as fast as possible</li>
45+
* <li>Not be removed from the execution path</li>
4646
* </ul>
4747
*
4848
* <p>The results of this benchmark should be plotted for each method using [numValues] vs [run time]
@@ -62,12 +62,12 @@ public class BaselineGenerationPerformance {
6262
*
6363
* <ul>
6464
* <li>The number of bytes will be allocated when testing so the allocation overhead
65-
* should be small.
65+
* should be small.</li>
6666
* <li>The number must be set so that filling the bytes from an {@code int} or {@code long}
6767
* source has no advantage for the 32-bit source, e.g. the same number of underlying bits have
68-
* to be generated. Note: 127 / 4 ~ 32 ints or 127 / 8 ~ 16 longs.
68+
* to be generated. Note: 127 / 4 ~ 32 ints or 127 / 8 ~ 16 longs.</li>
6969
* <li>The number should not be a factor of 4 to prevent filling completely using a 32-bit
70-
* source. This tests the edge case of partial fill.
70+
* source. This tests the edge case of partial fill.</li>
7171
* </ul>
7272
*/
7373
static final int NEXT_BYTES_SIZE = 127;

commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/core/LXMBenchmark.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -647,17 +647,17 @@ public static class LCG128Source {
647647
*
648648
* <p>Notes:
649649
* <ul>
650-
* <li>Final LCG additive parameters make no significant difference.
651-
* <li>Inlining the compareUnsigned operation is a marginal improvement.
650+
* <li>Final LCG additive parameters make no significant difference.</li>
651+
* <li>Inlining the compareUnsigned operation is a marginal improvement.</li>
652652
* <li>Using the conditional load of the addition is of benefit when the add parameter
653653
* is close to 2^63. When close to 0 or 2^64 then branch prediction is good and
654-
* this path is fast.
654+
* this path is fast.</li>
655655
* <li>Using the full branchless version creates code with a constant time cost which
656656
* is fast. The branch code is faster when the branch is ~100% predictable, but can
657-
* be much slower.
657+
* be much slower.</li>
658658
* <li>The branchless version assuming the add parameter is odd is constant time cost
659659
* and fastest. The code is very small and putting it in a method will be inlined
660-
* and allows code reuse.
660+
* and allows code reuse.</li>
661661
* </ul>
662662
*/
663663
@Param({
@@ -695,10 +695,10 @@ public static class LCG128Source {
695695
/**
696696
* Range for a random addition to the additive parameter.
697697
* <ul>
698-
* <li>{@code range == 0}: no addition
699-
* <li>{@code range == Long.MIN_VALUE}: random addition
700-
* <li>{@code range > 0}: random in [0, range)
701-
* <li>{@code range < 0}: random in [0, -range) + 2^63
698+
* <li>{@code range == 0}: no addition</li>
699+
* <li>{@code range == Long.MIN_VALUE}: random addition</li>
700+
* <li>{@code range > 0}: random in [0, range)</li>
701+
* <li>{@code range < 0}: random in [0, -range) + 2^63</li>
702702
* </ul>
703703
*/
704704
@Param({

commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/package-info.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
* </p>
2727
*
2828
* <ul>
29-
* <li>The {@link org.apache.commons.rng.examples.jmh.RandomSourceValues RandomSourceValues} class
30-
* <li>The {@link org.apache.commons.rng.examples.jmh.core.BaselineSources BaselineSources} class
29+
* <li>The {@link org.apache.commons.rng.examples.jmh.RandomSourceValues RandomSourceValues} class</li>
30+
* <li>The {@link org.apache.commons.rng.examples.jmh.core.BaselineSources BaselineSources} class</li>
3131
* <li>The {@link org.apache.commons.rng.examples.jmh.simple.ConstructionPerformance
32-
* ConstructionPerformance} class
32+
* ConstructionPerformance} class</li>
3333
* </ul>
3434
*/
3535
package org.apache.commons.rng.examples.jmh;

commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/sampling/ArrayShuffleBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* <ul>
4848
* <li>Nevin Brackett-Rozinsky, Daniel Lemire,
4949
* Batched Ranged Random Integer Generation, Software: Practice and Experience (to appear)
50-
* <a href="https://arxiv.org/abs/2408.06213">arXiv:2408.06213M</a>
50+
* <a href="https://arxiv.org/abs/2408.06213">arXiv:2408.06213M</a></li>
5151
* </ul>
5252
*/
5353
@BenchmarkMode(Mode.AverageTime)

commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/sampling/distribution/StableSamplerPerformance.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ public class StableSamplerPerformance {
6565
* This is a translation of the FORTRAN routine RSTAB; it computes a rearrangement
6666
* of the original formula to use double-angle identities and output a 0-parameterization
6767
* stable deviate.
68-
*
68+
*</li>
6969
* <li>The implementation uses the Chambers-Mallows-Stuck (CMS) method using
7070
* the formula proven in Weron (1996) "On the Chambers-Mallows-Stuck method for
7171
* simulating skewed stable random variables". Statistics &amp; Probability
7272
* Letters. 28 (2): 165–171. This outputs a 1-parameterization stable deviate and
73-
* has been modified to the 0-parameterization using a translation.
73+
* has been modified to the 0-parameterization using a translation.</li>
7474
* </ol>
7575
*
7676
* <p>The code has been copied from o.a.c.rng.sampling.distributions.StableSampler.
@@ -1088,9 +1088,9 @@ public void setup() {
10881088
* a result in {@code [0, inf]}.
10891089
*
10901090
* <ul>
1091-
* <li>For {@code x=-inf} this returns {@code 0}.
1092-
* <li>For {@code x=0} this returns {@code 1}.
1093-
* <li>For {@code x=inf} this returns {@code inf}.
1091+
* <li>For {@code x=-inf} this returns {@code 0}.</li>
1092+
* <li>For {@code x=0} this returns {@code 1}.</li>
1093+
* <li>For {@code x=inf} this returns {@code inf}.</li>
10941094
* </ul>
10951095
*
10961096
* <p> This corrects {@code 0 / 0} and {@code inf / inf} division from

0 commit comments

Comments
 (0)