summaryrefslogtreecommitdiffstats
path: root/java/test
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-10-06 23:40:45 (GMT)
committerGitHub <noreply@github.com>2022-10-06 23:40:45 (GMT)
commit0ca9e2bfadd0657a536523c4ecbdae3a1e862eed (patch)
tree8292de643a2bafba6a73653d7fef86b5b52ff2f8 /java/test
parent84ecd826876f9d1e3fdac5dcd8fc681466a1b1ea (diff)
downloadhdf5-0ca9e2bfadd0657a536523c4ecbdae3a1e862eed.zip
hdf5-0ca9e2bfadd0657a536523c4ecbdae3a1e862eed.tar.gz
hdf5-0ca9e2bfadd0657a536523c4ecbdae3a1e862eed.tar.bz2
1.10 Fix some Java warnings (#2147)
* Fix some Java warnings * fix formatting
Diffstat (limited to 'java/test')
-rw-r--r--java/test/TestH5Ocreate.java4
-rw-r--r--java/test/TestH5Oparams.java3
2 files changed, 7 insertions, 0 deletions
diff --git a/java/test/TestH5Ocreate.java b/java/test/TestH5Ocreate.java
index 16609f9..c0d528d 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 ec71a18..7c714e2 100644
--- a/java/test/TestH5Oparams.java
+++ b/java/test/TestH5Oparams.java
@@ -138,6 +138,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
{
@@ -150,12 +151,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
{