Skip to content

Commit 0833e37

Browse files
authored
Merge pull request #691 from apache/cleanup_names_phase_6
Cleanup names phase 6
2 parents 4d1b5b7 + 584820d commit 0833e37

File tree

128 files changed

+1194
-986
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+1194
-986
lines changed

pom.xml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ under the License.
117117
<!-- com.github plugins -->
118118
<git-commit-id-plugin.version>4.9.10</git-commit-id-plugin.version>
119119
<!-- org.apache.creadur plugins -->
120-
<apache-rat-plugin.version>0.16.1</apache-rat-plugin.version>
120+
<apache-rat-plugin.version>0.17</apache-rat-plugin.version>
121121
<!-- org.eluder maven plugins -->
122122
<coveralls-repo-token></coveralls-repo-token>
123123
<coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
@@ -332,19 +332,20 @@ under the License.
332332
<configuration>
333333
<outputDirectory>${project.basedir}/rat</outputDirectory>
334334
<consoleOutput>true</consoleOutput>
335-
<useDefaultExcludes>true</useDefaultExcludes>
336-
<excludes>
337-
<!-- rat uses .gitignore for excludes by default -->
338-
<exclude>**/*.yaml</exclude>
339-
<exclude>**/*.yml</exclude>
340-
<exclude>**/.*</exclude>
341-
<exclude>**/test/resources/**/*.txt</exclude>
342-
<exclude>**/git.properties</exclude>
343-
<exclude>**/*.sk</exclude>
344-
<exclude>LICENSE</exclude>
345-
<exclude>NOTICE</exclude>
346-
<exclude>**/*.code-workspace</exclude>
347-
</excludes>
335+
<inputExcludes>
336+
<!-- I think rat uses .gitignore for excludes by default -->
337+
<inputExcludeStd>StandardCollection</inputExcludeStd>
338+
<inputExclude>**/*.yaml</inputExclude>
339+
<inputExclude>**/*.yml</inputExclude>
340+
<inputExclude>**/.*</inputExclude>
341+
<inputExclude>**/test/resources/**/*.txt</inputExclude>
342+
<inputExclude>**/git.properties</inputExclude>
343+
<inputExclude>**/doc/**</inputExclude>
344+
<inputExclude>**/*.sk</inputExclude>
345+
<inputExclude>LICENSE</inputExclude>
346+
<inputExclude>NOTICE</inputExclude>
347+
<inputExclude>**/*.code-workspace</inputExclude>
348+
</inputExcludes>
348349
</configuration>
349350
</plugin>
350351

src/main/java/org/apache/datasketches/common/ArrayOfBooleansSerDe.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
* @author Jon Malkin
3131
*/
3232
public class ArrayOfBooleansSerDe extends ArrayOfItemsSerDe<Boolean> {
33+
34+
/**
35+
* No argument constructor.
36+
*/
37+
public ArrayOfBooleansSerDe() { }
38+
3339
/**
3440
* Computes number of bytes needed for packed bit encoding of the array of booleans. Rounds
3541
* partial bytes up to return a whole number of bytes.

src/main/java/org/apache/datasketches/common/ArrayOfDoublesSerDe.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
*/
3333
public class ArrayOfDoublesSerDe extends ArrayOfItemsSerDe<Double> {
3434

35+
/**
36+
* No argument constructor.
37+
*/
38+
public ArrayOfDoublesSerDe() { }
39+
3540
@Override
3641
public byte[] serializeToByteArray(final Double item) {
3742
Objects.requireNonNull(item, "Item must not be null");

src/main/java/org/apache/datasketches/common/ArrayOfItemsSerDe.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
*/
3131
public abstract class ArrayOfItemsSerDe<T> {
3232

33+
/**
34+
* No argument constructor.
35+
*/
36+
public ArrayOfItemsSerDe() { }
37+
3338
/**
3439
* Serialize a single unserialized item to a byte array.
3540
*

src/main/java/org/apache/datasketches/common/ArrayOfLongsSerDe.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
*/
3333
public class ArrayOfLongsSerDe extends ArrayOfItemsSerDe<Long> {
3434

35+
/**
36+
* No argument constructor.
37+
*/
38+
public ArrayOfLongsSerDe() { }
39+
3540
@Override
3641
public byte[] serializeToByteArray(final Long item) {
3742
Objects.requireNonNull(item, "Item must not be null");

src/main/java/org/apache/datasketches/common/ArrayOfNumbersSerDe.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
* @author Jon Malkin
5050
*/
5151
public class ArrayOfNumbersSerDe extends ArrayOfItemsSerDe<Number> {
52-
5352
// values selected to enable backwards compatibility
5453
private static final byte LONG_INDICATOR = 12;
5554
private static final byte INTEGER_INDICATOR = 9;
@@ -58,6 +57,11 @@ public class ArrayOfNumbersSerDe extends ArrayOfItemsSerDe<Number> {
5857
private static final byte DOUBLE_INDICATOR = 4;
5958
private static final byte FLOAT_INDICATOR = 6;
6059

60+
/**
61+
* No argument constructor.
62+
*/
63+
public ArrayOfNumbersSerDe() { }
64+
6165
@Override
6266
public byte[] serializeToByteArray(final Number item) {
6367
Objects.requireNonNull(item, "Item must not be null");

src/main/java/org/apache/datasketches/common/ArrayOfStringsSerDe.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
*/
4242
public class ArrayOfStringsSerDe extends ArrayOfItemsSerDe<String> {
4343

44+
/**
45+
* No argument constructor.
46+
*/
47+
public ArrayOfStringsSerDe() { }
48+
4449
@Override
4550
public byte[] serializeToByteArray(final String item) {
4651
Objects.requireNonNull(item, "Item must not be null");

src/main/java/org/apache/datasketches/common/ArrayOfUtf16StringsSerDe.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
*/
4040
public class ArrayOfUtf16StringsSerDe extends ArrayOfItemsSerDe<String> {
4141

42+
/**
43+
* No argument constructor.
44+
*/
45+
public ArrayOfUtf16StringsSerDe() { }
46+
4247
@Override
4348
public byte[] serializeToByteArray(final String item) {
4449
Objects.requireNonNull(item, "Item must not be null");

src/main/java/org/apache/datasketches/common/ByteArrayUtil.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
*/
2626
public final class ByteArrayUtil {
2727

28+
/**
29+
* No argument constructor.
30+
*/
31+
public ByteArrayUtil() { }
32+
2833
/**
2934
* Copies bytes from source to target with offsets on both the source and target.
3035
* @param source the given source

src/main/java/org/apache/datasketches/common/MemorySegmentRequest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,14 @@ default void requestClose(final MemorySegment prevSeg) {
5353
}
5454

5555
/**
56-
* This class implements the defaults
56+
* A convenience class that implements a default implementation.
5757
*/
5858
public static class Default implements MemorySegmentRequest {
59-
//A convenience class that creates the target for the static member DEFAULT.
59+
60+
/**
61+
* No argument constructor that creates the target for the static member DEFAULT.
62+
*/
63+
public Default() { }
6064
}
6165

6266
/**

0 commit comments

Comments
 (0)