diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-10-03 18:31:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 18:31:32 (GMT) |
commit | c114bd64b0662a010b0a9c502b921adfab00f1e6 (patch) | |
tree | 9bfe24cf7fa1618398e2a7e053483ff0c8043e51 /java/test | |
parent | 1fb83da21531da8e531234fa6ab810b7a90d7ee9 (diff) | |
download | hdf5-c114bd64b0662a010b0a9c502b921adfab00f1e6.zip hdf5-c114bd64b0662a010b0a9c502b921adfab00f1e6.tar.gz hdf5-c114bd64b0662a010b0a9c502b921adfab00f1e6.tar.bz2 |
Fix mostly java warnings, and cpp cast (#2134)
Diffstat (limited to 'java/test')
-rw-r--r-- | java/test/TestH5Fparams.java | 1 | ||||
-rw-r--r-- | java/test/TestH5Ocreate.java | 4 | ||||
-rw-r--r-- | java/test/TestH5Oparams.java | 3 |
3 files changed, 8 insertions, 0 deletions
diff --git a/java/test/TestH5Fparams.java b/java/test/TestH5Fparams.java index 6accc3b..3fcfe3b 100644 --- a/java/test/TestH5Fparams.java +++ b/java/test/TestH5Fparams.java @@ -77,6 +77,7 @@ public class TestH5Fparams { H5.H5Funmount(-1, null); } + @SuppressWarnings("deprecation") @Ignore public void testH5Fis_hdf5_text() { diff --git a/java/test/TestH5Ocreate.java b/java/test/TestH5Ocreate.java index 096abcd..eb57938 100644 --- a/java/test/TestH5Ocreate.java +++ b/java/test/TestH5Ocreate.java @@ -449,6 +449,7 @@ public class TestH5Ocreate { ((idata)((H5O_iter_data)iter_data).iterdata.get(3)).link_name.compareToIgnoreCase("G1/DS2") == 0); } + @SuppressWarnings("deprecation") @Test public void testH5Ocomment() { @@ -479,6 +480,7 @@ public class TestH5Ocreate { assertTrue("H5Oget_comment: ", obj_comment.compareTo("Test Comment") == 0); } + @SuppressWarnings("deprecation") @Test public void testH5Ocomment_clear() { @@ -525,6 +527,7 @@ public class TestH5Ocreate { assertTrue("H5Oget_comment: ", obj_comment == null); } + @SuppressWarnings("deprecation") @Test public void testH5Ocomment_by_name() { @@ -548,6 +551,7 @@ public class TestH5Ocreate { assertTrue("H5Oget_comment_by_name: ", obj_comment.compareTo("Test Comment") == 0); } + @SuppressWarnings("deprecation") @Test public void testH5Ocomment_by_name_clear() { diff --git a/java/test/TestH5Oparams.java b/java/test/TestH5Oparams.java index 280e9fd..296babc 100644 --- a/java/test/TestH5Oparams.java +++ b/java/test/TestH5Oparams.java @@ -168,6 +168,7 @@ public class TestH5Oparams { H5.H5Ovisit_by_name(-1, "Bogus", -1, -1, null, null, 0, -1); } + @SuppressWarnings("deprecation") @Test(expected = HDF5LibraryException.class) public void testH5Oset_comment_invalid() throws Throwable { @@ -180,12 +181,14 @@ public class TestH5Oparams { H5.H5Oget_comment(-1); } + @SuppressWarnings("deprecation") @Test(expected = HDF5LibraryException.class) public void testH5Oset_comment_by_name_invalid() throws Throwable { H5.H5Oset_comment_by_name(-1, "Bogus", null, -1); } + @SuppressWarnings("deprecation") @Test(expected = NullPointerException.class) public void testH5Oset_comment_by_name_null() throws Throwable { |