Remove use of deprecated constructors

Change-Id: I92a11a2a7d45c65bce408714973b3dd5576f4d0d
diff --git a/pom.xml b/pom.xml
index 71907d4..781bf67 100644
--- a/pom.xml
+++ b/pom.xml
@@ -59,7 +59,7 @@
   </developers>
 
   <properties>
-    <java.version>11</java.version>
+    <java.version>17</java.version>
     <jersey.version>3.0.4</jersey.version>
     <jackson.version>2.14.0</jackson.version>
     <log4j.version>[2.19.0,)</log4j.version>