summaryrefslogtreecommitdiffstats
path: root/java/test
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-10-06 23:40:27 (GMT)
committerGitHub <noreply@github.com>2022-10-06 23:40:27 (GMT)
commit04d11bfb2bf430226af75c302f69e2d284ba395b (patch)
tree5843f4d8bb0540129212090e43e371e233a16215 /java/test
parent1a20a9f342227a7b822f45abe893af86f3fe2d19 (diff)
downloadhdf5-04d11bfb2bf430226af75c302f69e2d284ba395b.zip
hdf5-04d11bfb2bf430226af75c302f69e2d284ba395b.tar.gz
hdf5-04d11bfb2bf430226af75c302f69e2d284ba395b.tar.bz2
1.12 Fix some Java warnings (#2146)
* Fix some Java warnings * Fix accidental change
Diffstat (limited to 'java/test')
-rw-r--r--java/test/TestH5Fparams.java1
-rw-r--r--java/test/TestH5Ocreate.java4
-rw-r--r--java/test/TestH5Oparams.java3
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
{