diff --git a/NOTICE b/NOTICE index d7ec45b4..e69ad8ac 100644 --- a/NOTICE +++ b/NOTICE @@ -1,12 +1,12 @@ Apache DataSketches Memory +Copyright 2022 - The Apache Software Foundation -Copyright 2021 - The Apache Software Foundation - -Copyright 2015-2018 Yahoo -Copyright 2019 Verizon Media +Copyright 2015-2018 Yahoo Inc. +Copyright 2019-2020 Verizon Media +Copyright 2021 Yahoo Inc. This product includes software developed at The Apache Software Foundation (http://www.apache.org/). Prior to moving to ASF, the software for this project was developed at -Yahoo (now Verizon Media) (https://developer.yahoo.com). +Yahoo Inc. (https://developer.yahoo.com). \ No newline at end of file diff --git a/README.md b/README.md index 3dc629a4..f01d6d69 100644 --- a/README.md +++ b/README.md @@ -179,15 +179,15 @@ For example, if the project base directory is `/src/datasketches-memory`; To run the script for a release version: - ./tools/scripts/compile-package-jar.sh $JAVA_HOME 2.0.0 /src/datasketches-memory + ./tools/scripts/compile-package-jar.sh $JAVA_HOME 2.1.0 /src/datasketches-memory To run the script for a snapshot version: - ./tools/scripts/compile-package-jar.sh $JAVA_HOME 2.1.0-SNAPSHOT /src/datasketches-memory + ./tools/scripts/compile-package-jar.sh $JAVA_HOME 2.2.0-SNAPSHOT /src/datasketches-memory To run the script for an RC version: - ./tools/scripts/compile-package-jar.sh $JAVA_HOME 2.0.0-RC1 /src/datasketches-memory + ./tools/scripts/compile-package-jar.sh $JAVA_HOME 2.1.0-RC1 /src/datasketches-memory Note that the script does **not** use the _Git Version Tag_ to adjust the working copy to a remote tag - it is expected that the user has a pristine copy of the desired branch/tag available **before** using the script. diff --git a/datasketches-memory-java11/src/main/java/module-info.java b/datasketches-memory-java11/src/main/java/module-info.java index bbd5127c..07163cf3 100644 --- a/datasketches-memory-java11/src/main/java/module-info.java +++ b/datasketches-memory-java11/src/main/java/module-info.java @@ -16,7 +16,6 @@ * specific language governing permissions and limitations * under the License. */ -@SuppressWarnings("javadoc") module org.apache.datasketches.memory { requires java.base; requires java.logging; diff --git a/datasketches-memory-java11/src/main/java/org/apache/datasketches/memory/Map.java b/datasketches-memory-java11/src/main/java/org/apache/datasketches/memory/Map.java index 9e1f76d6..6b990594 100644 --- a/datasketches-memory-java11/src/main/java/org/apache/datasketches/memory/Map.java +++ b/datasketches-memory-java11/src/main/java/org/apache/datasketches/memory/Map.java @@ -43,4 +43,4 @@ public interface Map extends AutoCloseable { */ boolean isLoaded(); -} \ No newline at end of file +} diff --git a/datasketches-memory-java11/src/main/java/org/apache/datasketches/memory/internal/MemoryCleaner.java b/datasketches-memory-java11/src/main/java/org/apache/datasketches/memory/internal/MemoryCleaner.java index 20e31319..f78801fe 100644 --- a/datasketches-memory-java11/src/main/java/org/apache/datasketches/memory/internal/MemoryCleaner.java +++ b/datasketches-memory-java11/src/main/java/org/apache/datasketches/memory/internal/MemoryCleaner.java @@ -47,4 +47,4 @@ public MemoryCleaner(final Object referent, final Runnable deallocator) { public void clean() { cleaner.clean(); } -} \ No newline at end of file +} diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/AllocateDirectMapMemoryTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/AllocateDirectMapMemoryTest.java index c891d976..a197e014 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/AllocateDirectMapMemoryTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/AllocateDirectMapMemoryTest.java @@ -38,7 +38,6 @@ import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -@SuppressWarnings({"javadoc", "unused"}) public class AllocateDirectMapMemoryTest { private static final String LS = System.getProperty("line.separator"); MapHandle hand = null; diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/AllocateDirectMemoryTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/AllocateDirectMemoryTest.java index fddab0b7..96c1c3d4 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/AllocateDirectMemoryTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/AllocateDirectMemoryTest.java @@ -32,7 +32,6 @@ import org.testng.annotations.AfterClass; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class AllocateDirectMemoryTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/AllocateDirectWritableMapMemoryTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/AllocateDirectWritableMapMemoryTest.java index f7400c9e..ffcb2ca8 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/AllocateDirectWritableMapMemoryTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/AllocateDirectWritableMapMemoryTest.java @@ -50,7 +50,6 @@ import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class AllocateDirectWritableMapMemoryTest { private static final String LS = System.getProperty("line.separator"); @@ -154,7 +153,6 @@ public void checkNonNativeFile() throws Exception { } } - @SuppressWarnings("resource") @Test(expectedExceptions = RuntimeException.class) public void testMapException() throws IOException { File dummy = createFile("dummy.txt", ""); //zero length diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BaseBufferTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BaseBufferTest.java index b20831de..7dc22888 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BaseBufferTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BaseBufferTest.java @@ -30,7 +30,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class BaseBufferTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BaseStateTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BaseStateTest.java index d919ef97..64de3b55 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BaseStateTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BaseStateTest.java @@ -37,7 +37,6 @@ import org.apache.datasketches.memory.internal.Util; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class BaseStateTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/Buffer2Test.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/Buffer2Test.java index 11ca0f25..008217be 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/Buffer2Test.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/Buffer2Test.java @@ -35,7 +35,6 @@ import org.apache.datasketches.memory.WritableMemory; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class Buffer2Test { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferBoundaryCheckTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferBoundaryCheckTest.java index 03d428d5..cf7dddc2 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferBoundaryCheckTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferBoundaryCheckTest.java @@ -22,7 +22,6 @@ import org.apache.datasketches.memory.WritableMemory; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class BufferBoundaryCheckTest { private final WritableMemory writableMemory = WritableMemory.allocate(8); diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferInvariantsTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferInvariantsTest.java index 7759e273..12cf1b98 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferInvariantsTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferInvariantsTest.java @@ -33,7 +33,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class BufferInvariantsTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferReadWriteSafetyTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferReadWriteSafetyTest.java index 91e04658..d040267b 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferReadWriteSafetyTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferReadWriteSafetyTest.java @@ -27,7 +27,6 @@ import org.apache.datasketches.memory.WritableMemory; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class BufferReadWriteSafetyTest { // Test various operations with read-only Buffer diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferTest.java index 267f5ab2..e6d3dbfc 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/BufferTest.java @@ -33,7 +33,6 @@ import org.testng.annotations.Test; import org.testng.collections.Lists; -@SuppressWarnings("javadoc") public class BufferTest { @Test @@ -283,7 +282,6 @@ public void checkWRegions() { @Test(expectedExceptions = AssertionError.class) public void checkParentUseAfterFree() throws Exception { int bytes = 64 * 8; - @SuppressWarnings("resource") //intentionally not using try-with-resources here WritableHandle wh = WritableMemory.allocateDirect(bytes); WritableMemory wmem = wh.getWritable(); WritableBuffer wbuf = wmem.asWritableBuffer(); @@ -293,7 +291,6 @@ public void checkParentUseAfterFree() throws Exception { wbuf.getLong(); } - @SuppressWarnings("resource") @Test(expectedExceptions = AssertionError.class) public void checkRegionUseAfterFree() throws Exception { int bytes = 64; diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CommonBufferTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CommonBufferTest.java index 9633b3d8..9bae02d3 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CommonBufferTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CommonBufferTest.java @@ -26,7 +26,6 @@ import org.apache.datasketches.memory.WritableMemory; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class CommonBufferTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CommonMemoryTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CommonMemoryTest.java index 51f1407a..35b831d2 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CommonMemoryTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CommonMemoryTest.java @@ -31,7 +31,6 @@ import org.apache.datasketches.memory.WritableMemory; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class CommonMemoryTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CopyMemoryOverlapTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CopyMemoryOverlapTest.java index 771cdd8d..fcbeba9b 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CopyMemoryOverlapTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CopyMemoryOverlapTest.java @@ -29,7 +29,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class CopyMemoryOverlapTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CopyMemoryTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CopyMemoryTest.java index f2cc2c82..73c5078c 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CopyMemoryTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/CopyMemoryTest.java @@ -30,7 +30,6 @@ import org.testng.Assert; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class CopyMemoryTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/DruidIssue11544Test.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/DruidIssue11544Test.java index 042203e7..92e50573 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/DruidIssue11544Test.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/DruidIssue11544Test.java @@ -48,7 +48,6 @@ * @author Lee Rhodes * */ -@SuppressWarnings("javadoc") public class DruidIssue11544Test { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/ExampleMemoryRequestServerTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/ExampleMemoryRequestServerTest.java index eb9a1341..5afa117c 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/ExampleMemoryRequestServerTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/ExampleMemoryRequestServerTest.java @@ -33,14 +33,12 @@ * Examples of how to use the MemoryRequestServer with a memory hungry client. * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class ExampleMemoryRequestServerTest { /** * This version is without a TWR block.all of the memory allocations are done through the MemoryRequestServer * and each is closed by the MemoryClient when it is done with each. */ - @SuppressWarnings("resource") @Test public void checkExampleMemoryRequestServer1() throws Exception { int bytes = 8; @@ -74,7 +72,6 @@ public void checkExampleMemoryRequestServer2() throws Exception { } } - @SuppressWarnings("resource") @Test(expectedExceptions = IllegalArgumentException.class) public void checkZeroCapacity() throws Exception { ExampleMemoryRequestServer svr = new ExampleMemoryRequestServer(); @@ -131,7 +128,6 @@ void process() { public static class ExampleMemoryRequestServer implements MemoryRequestServer { IdentityHashMap map = new IdentityHashMap<>(); - @SuppressWarnings("resource") @Override public WritableMemory request(WritableMemory currentWMem, long capacityBytes) { ByteOrder order = currentWMem.getTypeByteOrder(); @@ -141,7 +137,6 @@ public WritableMemory request(WritableMemory currentWMem, long capacityBytes) { return wmem; } - @SuppressWarnings("resource") @Override //here we actually release it, in reality it might be a lot more complex. public void requestClose(WritableMemory memToRelease, WritableMemory newMemory) { diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/IgnoredArrayOverflowTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/IgnoredArrayOverflowTest.java index 2af75729..2c228e52 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/IgnoredArrayOverflowTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/IgnoredArrayOverflowTest.java @@ -25,7 +25,6 @@ import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class IgnoredArrayOverflowTest { private WritableHandle h; diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/LeafImplTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/LeafImplTest.java index 9b4e0b4a..c092fe05 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/LeafImplTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/LeafImplTest.java @@ -42,7 +42,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class LeafImplTest { private static final ByteOrder NBO = ByteOrder.nativeOrder(); private static final ByteOrder NNBO = NON_NATIVE_BYTE_ORDER; diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryBoundaryCheckTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryBoundaryCheckTest.java index c45387f8..f23f959a 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryBoundaryCheckTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryBoundaryCheckTest.java @@ -23,7 +23,6 @@ import org.apache.datasketches.memory.WritableMemory; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class MemoryBoundaryCheckTest { private final WritableBuffer writableBuffer = WritableMemory.allocate(8).asWritableBuffer(); diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryCleanerTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryCleanerTest.java index fafaf9bc..4deb493b 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryCleanerTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryCleanerTest.java @@ -27,7 +27,6 @@ import org.apache.datasketches.memory.internal.MemoryCleaner; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class MemoryCleanerTest { @Test @@ -38,7 +37,6 @@ public void cleanerDeallocates() { assertTrue(SimpleDeallocator.getHasRun()); } - @SuppressWarnings("unused") @Test public void noDeallocation() { SimpleDeallocator deallocator = new SimpleDeallocator(); diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryCloseExceptionTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryCloseExceptionTest.java index 3bf6c5e4..5dafda07 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryCloseExceptionTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryCloseExceptionTest.java @@ -22,7 +22,6 @@ import org.apache.datasketches.memory.MemoryCloseException; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class MemoryCloseExceptionTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryReadWriteSafetyTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryReadWriteSafetyTest.java index f73a28ef..8281ef56 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryReadWriteSafetyTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryReadWriteSafetyTest.java @@ -30,7 +30,6 @@ import org.apache.datasketches.memory.WritableMemory; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class MemoryReadWriteSafetyTest { // Test various operations with read-only Memory diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryTest.java index b63e5246..a80a7b81 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryTest.java @@ -46,7 +46,6 @@ import org.testng.annotations.Test; import org.testng.collections.Lists; -@SuppressWarnings("javadoc") public class MemoryTest { private static final String LS = System.getProperty("line.separator"); @@ -324,7 +323,6 @@ public void checkWRegionsReverseBO() { @Test(expectedExceptions = AssertionError.class) public void checkParentUseAfterFree() throws Exception { int bytes = 64 * 8; - @SuppressWarnings("resource") //intentionally not using try-with-resouces here WritableHandle wh = WritableMemory.allocateDirect(bytes); WritableMemory wmem = wh.getWritable(); wh.close(); @@ -336,7 +334,6 @@ public void checkParentUseAfterFree() throws Exception { @Test(expectedExceptions = AssertionError.class) public void checkRegionUseAfterFree() throws Exception { int bytes = 64; - @SuppressWarnings("resource") //intentionally not using try-with-resouces here WritableHandle wh = WritableMemory.allocateDirect(bytes); Memory wmem = wh.get(); Memory region = wmem.region(0L, bytes); @@ -346,7 +343,6 @@ public void checkRegionUseAfterFree() throws Exception { region.getByte(0); } - @SuppressWarnings({ "resource"}) @Test public void checkMonitorDirectStats() throws Exception { int bytes = 1024; @@ -369,7 +365,6 @@ public void checkMonitorDirectStats() throws Exception { assertEquals(BaseState.getCurrentDirectMemoryAllocated(), 0L + curAllocated); } - @SuppressWarnings({ "resource"}) @Test public void checkMonitorDirectMapStats() throws Exception { File file = getResourceFile("GettysburgAddress.txt"); diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryWriteToTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryWriteToTest.java index f65374cd..85c6eaa8 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryWriteToTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MemoryWriteToTest.java @@ -33,7 +33,6 @@ import org.testng.Assert; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class MemoryWriteToTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MurmurHash3v2Test.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MurmurHash3v2Test.java index f511d41b..cfbd7b2f 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MurmurHash3v2Test.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/MurmurHash3v2Test.java @@ -36,7 +36,6 @@ * * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class MurmurHash3v2Test { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NativeWritableBufferImplTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NativeWritableBufferImplTest.java index be503a72..1df97fbf 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NativeWritableBufferImplTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NativeWritableBufferImplTest.java @@ -38,12 +38,10 @@ import org.testng.Assert; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class NativeWritableBufferImplTest { //Simple Native direct - @SuppressWarnings("resource") @Test public void checkNativeCapacityAndClose() throws Exception { int memCapacity = 64; diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NativeWritableMemoryImplTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NativeWritableMemoryImplTest.java index d4628eb5..4fdaa93a 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NativeWritableMemoryImplTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NativeWritableMemoryImplTest.java @@ -37,12 +37,10 @@ import org.apache.datasketches.memory.WritableMemory; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class NativeWritableMemoryImplTest { //Simple Native direct - @SuppressWarnings("resource") @Test public void checkNativeCapacityAndClose() throws Exception { int memCapacity = 64; diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NioBitsTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NioBitsTest.java index 9e455359..4ae5930b 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NioBitsTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NioBitsTest.java @@ -26,7 +26,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class NioBitsTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NonNativeWritableBufferImplTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NonNativeWritableBufferImplTest.java index 7753e6e0..819d78ce 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NonNativeWritableBufferImplTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NonNativeWritableBufferImplTest.java @@ -31,7 +31,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class NonNativeWritableBufferImplTest { //Check primitives diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NonNativeWritableMemoryImplTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NonNativeWritableMemoryImplTest.java index c6351dc5..3b6d8938 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NonNativeWritableMemoryImplTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/NonNativeWritableMemoryImplTest.java @@ -30,7 +30,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class NonNativeWritableMemoryImplTest { private byte[] bArr = new byte[8]; private final WritableMemory wmem = WritableMemory.writableWrap(bArr, ByteOrder.BIG_ENDIAN); diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/ReflectUtil.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/ReflectUtil.java index 3d27ddac..f57a49cf 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/ReflectUtil.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/ReflectUtil.java @@ -28,7 +28,6 @@ import org.apache.datasketches.memory.MemoryRequestServer; -@SuppressWarnings("javadoc") public final class ReflectUtil { private ReflectUtil() {} @@ -203,7 +202,7 @@ public static Object getFieldValue(final Class ownerClass, final Field field) /** * Gets a declared method of the given the loaded owning class, method name and parameter types. * The accessible flag will be set true. - * @param ownerClass the given + * @param ownerClass the given owner class * @param methodName the given method name * @param parameterTypes the list of parameter types * @return the desired method. diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/SpecificLeafTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/SpecificLeafTest.java index 1018647f..6499620c 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/SpecificLeafTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/SpecificLeafTest.java @@ -38,7 +38,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class SpecificLeafTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/UnsafeUtilTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/UnsafeUtilTest.java index 53c6f77d..8cace378 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/UnsafeUtilTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/UnsafeUtilTest.java @@ -34,7 +34,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class UnsafeUtilTest { long testField = 1; //Do not remove & cannot be static. Used in reflection check. diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/Utf8Test.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/Utf8Test.java index 19c6b4e4..9f57550d 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/Utf8Test.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/Utf8Test.java @@ -44,7 +44,6 @@ * https://developers.google.com/protocol-buffers/ * See LICENSE. */ -@SuppressWarnings("javadoc") public class Utf8Test { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/UtilTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/UtilTest.java index 9b7f5d94..85a27bf0 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/UtilTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/UtilTest.java @@ -47,7 +47,6 @@ import org.apache.datasketches.memory.WritableMemory; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class UtilTest { private static final String LS = System.getProperty("line.separator"); diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/VirtualMachineMemoryTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/VirtualMachineMemoryTest.java index ab23861f..c45efd72 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/VirtualMachineMemoryTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/VirtualMachineMemoryTest.java @@ -22,7 +22,7 @@ import org.apache.datasketches.memory.internal.VirtualMachineMemory; import org.testng.annotations.Test; -@SuppressWarnings({"javadoc","unused"}) +@SuppressWarnings({"unused"}) public class VirtualMachineMemoryTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/WritableDirectCopyTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/WritableDirectCopyTest.java index e93352bc..b24bb9b0 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/WritableDirectCopyTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/WritableDirectCopyTest.java @@ -30,7 +30,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class WritableDirectCopyTest { //Copy Within tests diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/WritableMemoryTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/WritableMemoryTest.java index 2b56e4dd..93d78e93 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/WritableMemoryTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/WritableMemoryTest.java @@ -33,7 +33,6 @@ import org.apache.datasketches.memory.internal.Util; import org.testng.annotations.Test; -@SuppressWarnings("javadoc") public class WritableMemoryTest { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/XxHash64LoopingTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/XxHash64LoopingTest.java index 76a2e590..eaff0eb7 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/XxHash64LoopingTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/XxHash64LoopingTest.java @@ -27,7 +27,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class XxHash64LoopingTest { /* diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/XxHash64Test.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/XxHash64Test.java index f20aa094..6baa3b26 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/XxHash64Test.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/XxHash64Test.java @@ -35,7 +35,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class XxHash64Test { @Test diff --git a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/ZeroCapacityTest.java b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/ZeroCapacityTest.java index 28914b34..86c5b841 100644 --- a/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/ZeroCapacityTest.java +++ b/datasketches-memory-java8-tests/src/test/java/org/apache/datasketches/memory/test/ZeroCapacityTest.java @@ -32,19 +32,17 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public class ZeroCapacityTest { - @SuppressWarnings({ "unused", "resource" }) @Test public void checkZeroCapacity() throws Exception { WritableMemory wmem = WritableMemory.allocate(0); assertEquals(wmem.getCapacity(), 0); - Memory mem1 = Memory.wrap(new byte[0]); - Memory mem2 = Memory.wrap(ByteBuffer.allocate(0)); + Memory.wrap(new byte[0]); + Memory.wrap(ByteBuffer.allocate(0)); Memory mem3 = Memory.wrap(ByteBuffer.allocateDirect(0)); - Memory reg = mem3.region(0, 0); + mem3.region(0, 0); WritableHandle wh = null; try { wh = WritableMemory.allocateDirect(0); diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/BaseState.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/BaseState.java index 2f0cd96a..2ec75cb4 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/BaseState.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/BaseState.java @@ -17,7 +17,6 @@ * under the License. */ - package org.apache.datasketches.memory; import java.nio.ByteBuffer; diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/Memory.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/Memory.java index 71ac7a53..83fe2d01 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/Memory.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/Memory.java @@ -17,7 +17,6 @@ * under the License. */ - package org.apache.datasketches.memory; import static org.apache.datasketches.memory.internal.Util.negativeCheck; diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/MurmurHash3v2.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/MurmurHash3v2.java index b958213b..9c5a35b0 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/MurmurHash3v2.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/MurmurHash3v2.java @@ -315,7 +315,6 @@ private static long mixK2(long k2) { return k2; } - /** * Final self mix of h*. * diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/WritableBuffer.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/WritableBuffer.java index 16d53cf0..b6aebe03 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/WritableBuffer.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/WritableBuffer.java @@ -17,7 +17,6 @@ * under the License. */ - package org.apache.datasketches.memory; import java.nio.ByteBuffer; diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/WritableMemory.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/WritableMemory.java index 68668625..cdc1635a 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/WritableMemory.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/WritableMemory.java @@ -220,7 +220,6 @@ default WritableBuffer asWritableBuffer() { */ WritableBuffer asWritableBuffer(ByteOrder byteOrder); - //ALLOCATE HEAP VIA AUTOMATIC BYTE ARRAY /** * Creates on-heap WritableMemory with the given capacity and the native byte order. @@ -255,7 +254,6 @@ static WritableMemory allocate(int capacityBytes, ByteOrder byteOrder, MemoryReq return writableWrap(arr, 0, capacityBytes, byteOrder, memReqSvr); } - //ACCESS PRIMITIVE HEAP ARRAYS for WRITE /** diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/AllocateDirectMap.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/AllocateDirectMap.java index d8356c96..6126facd 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/AllocateDirectMap.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/AllocateDirectMap.java @@ -103,7 +103,6 @@ class AllocateDirectMap implements Map { final boolean resourceReadOnly; //called from AllocateDirectWritableMap constructor - @SuppressWarnings("resource") AllocateDirectMap(final File file, final long fileOffsetBytes, final long capacityBytes, final boolean localReadOnly) { this.capacityBytes = capacityBytes; diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/BaseStateImpl.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/BaseStateImpl.java index 0ff29124..42062c14 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/BaseStateImpl.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/BaseStateImpl.java @@ -338,7 +338,6 @@ final boolean isBBType() { return (getTypeId() >>> 3 & 3) == 3; } - //TO STRING /** * Decodes the resource type. This is primarily for debugging. @@ -491,6 +490,6 @@ public static final long getCurrentDirectMemoryMapAllocated() { } //REACHABILITY FENCE - static void reachabilityFence(@SuppressWarnings("unused") final Object obj) { } + static void reachabilityFence(final Object obj) { } } diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/BaseWritableMemoryImpl.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/BaseWritableMemoryImpl.java index ad397b03..1e75d7d9 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/BaseWritableMemoryImpl.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/BaseWritableMemoryImpl.java @@ -127,7 +127,6 @@ public static BaseWritableMemoryImpl wrapByteBuffer( * @param byteOrder the requested byte-order * @return this class constructed via the leaf node. */ - @SuppressWarnings("resource") public static WritableMapHandle wrapMap(final File file, final long fileOffsetBytes, final long capacityBytes, final boolean localReadOnly, final ByteOrder byteOrder) { final AllocateDirectWritableMap dirWMap = @@ -148,7 +147,6 @@ public static WritableMapHandle wrapMap(final File file, final long fileOffsetBy * @param memReqSvr the requested MemoryRequestServer, which may be null * @return this class constructed via the leaf node. */ - @SuppressWarnings("resource") public static WritableHandle wrapDirect(final long capacityBytes, final ByteOrder byteOrder, final MemoryRequestServer memReqSvr) { final AllocateDirect direct = new AllocateDirect(capacityBytes); diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/HeapWritableMemoryImpl.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/HeapWritableMemoryImpl.java index 9f6a9ca9..d2f05d99 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/HeapWritableMemoryImpl.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/HeapWritableMemoryImpl.java @@ -36,7 +36,6 @@ final class HeapWritableMemoryImpl extends NativeWritableMemoryImpl { private final MemoryRequestServer memReqSvr; private final byte typeId; - HeapWritableMemoryImpl( final Object unsafeObj, final long regionOffset, @@ -47,7 +46,6 @@ final class HeapWritableMemoryImpl extends NativeWritableMemoryImpl { this.unsafeObj = unsafeObj; this.memReqSvr = memReqSvr; this.typeId = (byte) (id | (typeId & 0x7)); - } @Override diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/Prim.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/Prim.java index 96d82031..411be5b1 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/Prim.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/Prim.java @@ -52,7 +52,6 @@ * * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public enum Prim { BOOLEAN(ARRAY_BOOLEAN_BASE_OFFSET, ARRAY_BOOLEAN_INDEX_SCALE, BOOLEAN_SHIFT), BYTE(ARRAY_BYTE_BASE_OFFSET, ARRAY_BYTE_INDEX_SCALE, BYTE_SHIFT), diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/UnsafeUtil.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/UnsafeUtil.java index bee1c052..0a99211e 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/UnsafeUtil.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/UnsafeUtil.java @@ -29,7 +29,7 @@ * * @author Lee Rhodes */ -@SuppressWarnings({"restriction", "javadoc"}) +@SuppressWarnings({"restriction"}) public final class UnsafeUtil { public static final Unsafe unsafe; public static final String JDK; //must be at least "1.8" diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/Util.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/Util.java index 18899a0c..7660dcac 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/Util.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/Util.java @@ -35,7 +35,6 @@ /** * @author Lee Rhodes */ -@SuppressWarnings("javadoc") public final class Util { public static final String LS = System.getProperty("line.separator"); @@ -47,7 +46,6 @@ public static ByteOrder otherByteOrder(final ByteOrder order) { return (order == ByteOrder.nativeOrder()) ? NON_NATIVE_BYTE_ORDER : ByteOrder.nativeOrder(); } - /** * Don't use sun.misc.Unsafe#copyMemory to copy blocks of memory larger than this * threshold, because internally it doesn't have safepoint polls, that may cause long @@ -76,7 +74,6 @@ public static boolean isNativeByteOrder(final ByteOrder byteOrder) { return ByteOrder.nativeOrder() == byteOrder; } - /** * Searches a range of the specified array of longs for the specified value using the binary * search algorithm. The range must be sorted method) prior to making this call. diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/XxHash64.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/XxHash64.java index af91e520..f5eb8cf4 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/XxHash64.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/XxHash64.java @@ -199,8 +199,6 @@ private static long finalize(long hash) { return hash; } - - /** * Hash the given arr starting at the given offset and continuing for the given length using the * given seed. diff --git a/datasketches-memory/pom.xml b/datasketches-memory/pom.xml index c1088b28..61f6b44f 100644 --- a/datasketches-memory/pom.xml +++ b/datasketches-memory/pom.xml @@ -100,8 +100,7 @@ under the License. - - 7.1.0 + 7.5 3.5.0 @@ -116,7 +115,7 @@ under the License. 3.3.0 - 3.0.0-M3 + 3.0.0 3.0.1 3.2.0 1.7.0 diff --git a/pom.xml b/pom.xml index 7631951e..2d7abf75 100644 --- a/pom.xml +++ b/pom.xml @@ -99,8 +99,7 @@ under the License. - - 7.1.0 + 7.5 3.5.0 @@ -123,10 +122,10 @@ under the License. 3.3.0 3.8.1 3.0.0-M1 - 3.0.0-M3 + 3.0.0 3.2.0 - 3.3.0 - 3.0.0-M1 + 3.3.1 + 3.0.0-M4 1.7.0 3.2.1 3.0.0-M5 diff --git a/tools/MemoryCheckstyle.xml b/tools/MemoryCheckstyle.xml index 93c3bf3e..fd631a75 100644 --- a/tools/MemoryCheckstyle.xml +++ b/tools/MemoryCheckstyle.xml @@ -173,7 +173,7 @@ under the License. - + @@ -200,14 +200,14 @@ under the License. - + - + @@ -240,7 +240,7 @@ under the License. - + @@ -352,6 +352,7 @@ under the License. + @@ -395,4 +396,4 @@ under the License. - + \ No newline at end of file diff --git a/tools/scripts/compile-package-jar.sh b/tools/scripts/compile-package-jar.sh index c9d01628..d51bfbb6 100755 --- a/tools/scripts/compile-package-jar.sh +++ b/tools/scripts/compile-package-jar.sh @@ -32,7 +32,7 @@ # Example tag for Release Candidate: 1.0.0-RC1 # Example tag for Release : 1.0.0 # \$3 = absolute path of project.basedir -# For example: $ .sh $JAVA_HOME 2.0.0-RC1 . +# For example: $ .sh $JAVA_HOME 2.1.0 . if [ -z "$1" ]; then echo "Missing JDK home"; exit 1; fi if [ -z "$2" ]; then echo "Missing Git Tag"; exit 1; fi