Skip to content

Commit ff8609c

Browse files
committed
Sonar fix: add no-op comment to empty constructors
1 parent 9d03df8 commit ff8609c

File tree

14 files changed

+42
-14
lines changed

14 files changed

+42
-14
lines changed

commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/ByteArray2IntArray.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
*/
2424
public class ByteArray2IntArray implements SeedConverter<byte[], int[]> {
2525
/** Create an instance. */
26-
public ByteArray2IntArray() {}
26+
public ByteArray2IntArray() {
27+
// Do nothing
28+
}
2729

2830
/** {@inheritDoc} */
2931
@Override

commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/ByteArray2LongArray.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
*/
2424
public class ByteArray2LongArray implements SeedConverter<byte[], long[]> {
2525
/** Create an instance. */
26-
public ByteArray2LongArray() {}
26+
public ByteArray2LongArray() {
27+
// Do nothing
28+
}
2729

2830
/** {@inheritDoc} */
2931
@Override

commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/Conversions.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ final class Conversions {
3737
private static final long GOLDEN_RATIO = MixFunctions.GOLDEN_RATIO_64;
3838

3939
/** No instances. */
40-
private Conversions() {}
40+
private Conversions() {
41+
// Do nothing
42+
}
4143

4244
/**
4345
* Compute the size of an {@code int} array required to hold the specified number of bytes.

commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/Int2Long.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
*/
2424
public class Int2Long implements SeedConverter<Integer, Long> {
2525
/** Create an instance. */
26-
public Int2Long() {}
26+
public Int2Long() {
27+
// Do nothing
28+
}
2729

2830
/** {@inheritDoc} */
2931
@Override

commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/IntArray2Int.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
*/
2424
public class IntArray2Int implements SeedConverter<int[], Integer> {
2525
/** Create an instance. */
26-
public IntArray2Int() {}
26+
public IntArray2Int() {
27+
// Do nothing
28+
}
2729

2830
/** {@inheritDoc} */
2931
@Override

commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/IntArray2LongArray.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
*/
2828
public class IntArray2LongArray implements SeedConverter<int[], long[]> {
2929
/** Create an instance. */
30-
public IntArray2LongArray() {}
30+
public IntArray2LongArray() {
31+
// Do nothing
32+
}
3133

3234
/** {@inheritDoc} */
3335
@Override

commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/Long2Int.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
*/
2626
public class Long2Int implements SeedConverter<Long, Integer> {
2727
/** Create an instance. */
28-
public Long2Int() {}
28+
public Long2Int() {
29+
// Do nothing
30+
}
2931

3032
/** {@inheritDoc} */
3133
@SuppressWarnings("deprecation")

commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/LongArray2IntArray.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
*/
2727
public class LongArray2IntArray implements SeedConverter<long[], int[]> {
2828
/** Create an instance. */
29-
public LongArray2IntArray() {}
29+
public LongArray2IntArray() {
30+
// Do nothing
31+
}
3032

3133
/** {@inheritDoc} */
3234
@Override

commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/LongArray2Long.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
*/
2424
public class LongArray2Long implements SeedConverter<long[], Long> {
2525
/** Create an instance. */
26-
public LongArray2Long() {}
26+
public LongArray2Long() {
27+
// Do nothing
28+
}
2729

2830
/** {@inheritDoc} */
2931
@Override

commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/MixFunctions.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ final class MixFunctions {
3838
static final int GOLDEN_RATIO_32 = 0x9e3779b9;
3939

4040
/** No instances. */
41-
private MixFunctions() {}
41+
private MixFunctions() {
42+
// Do nothing
43+
}
4244

4345
/**
4446
* Perform variant 13 of David Stafford's 64-bit mix function.

0 commit comments

Comments
 (0)