Remove superfluous throws 90/107490/3
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 25 Aug 2023 10:23:04 +0000 (12:23 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 25 Aug 2023 12:52:00 +0000 (12:52 +0000)
There is no point in declaring reflection-related exceptions as thrown,
since we never report them. Clean this particular mess up.

Change-Id: I9c1214420ce62a27b0fd4d7ffe90717ed2598086
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/XmlBodyReaderMountPointTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/patch/JsonPatchBodyReaderMountPointTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/patch/JsonPatchBodyReaderTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/patch/XmlPatchBodyReaderMountPointTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/patch/XmlPatchBodyReaderTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/test/AbstractBodyReaderTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/test/JsonBodyReaderTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/test/XmlBodyReaderTest.java

index a4a41d270158f1d92973cd02950a977133d9138b..4fc49f87ac20e42b7d995ebc4c76ace1230d1518 100644 (file)
@@ -49,7 +49,7 @@ public class XmlBodyReaderMountPointTest extends AbstractBodyReaderTest {
 
     private final XmlNormalizedNodeBodyReader xmlBodyReader;
 
-    public XmlBodyReaderMountPointTest() throws Exception {
+    public XmlBodyReaderMountPointTest() {
         super(schemaContext);
         xmlBodyReader = new XmlNormalizedNodeBodyReader(databindProvider, mountPointService);
     }
index 28e3f408ddf5a3a2da2d7bcd61e15d12ae78f67a..eefc57eaef69062a5adbb89fa68c6ea763ba5cad 100644 (file)
@@ -27,7 +27,7 @@ public class JsonPatchBodyReaderMountPointTest extends AbstractBodyReaderTest {
 
     private final JsonPatchBodyReader jsonToPatchBodyReader;
 
-    public JsonPatchBodyReaderMountPointTest() throws Exception {
+    public JsonPatchBodyReaderMountPointTest() {
         super(schemaContext);
         jsonToPatchBodyReader = new JsonPatchBodyReader(databindProvider, mountPointService);
     }
index fdffeb2d0476819a9ec09f93bb57d7b5d2ec5999..acf17f2ddf0420f4b28bf31b85d08f82c411c737 100644 (file)
@@ -34,7 +34,7 @@ public class JsonPatchBodyReaderTest extends AbstractBodyReaderTest {
     private final JsonPatchBodyReader jsonToPatchBodyReader;
     private static EffectiveModelContext schemaContext;
 
-    public JsonPatchBodyReaderTest() throws Exception {
+    public JsonPatchBodyReaderTest() {
         super(schemaContext);
         jsonToPatchBodyReader = new JsonPatchBodyReader(databindProvider, mountPointService);
     }
index 1ab05af6afbee052556331747d34914588f7a8c2..375657259d17a409e4b0512081767408eb9bf54a 100644 (file)
@@ -28,7 +28,7 @@ public class XmlPatchBodyReaderMountPointTest extends AbstractBodyReaderTest {
 
     private final XmlPatchBodyReader xmlToPatchBodyReader;
 
-    public XmlPatchBodyReaderMountPointTest() throws Exception {
+    public XmlPatchBodyReaderMountPointTest() {
         super(schemaContext);
         xmlToPatchBodyReader = new XmlPatchBodyReader(databindProvider, mountPointService);
     }
index 73ed79d3ac4b63612bbd0c75bc258b262072b530..5fae1412fb362c6cda8302e0c3e890e13c0fe2f8 100644 (file)
@@ -33,7 +33,7 @@ public class XmlPatchBodyReaderTest extends AbstractBodyReaderTest {
 
     private final XmlPatchBodyReader xmlToPatchBodyReader;
 
-    public XmlPatchBodyReaderTest() throws Exception {
+    public XmlPatchBodyReaderTest() {
         super(schemaContext);
         xmlToPatchBodyReader = new XmlPatchBodyReader(databindProvider, mountPointService);
     }
index 450b717bd31362890315963cb194346e077dca05..7955f4af8b7c09d6f4eee231e26065740f374bad 100644 (file)
@@ -69,8 +69,7 @@ public abstract class AbstractBodyReaderTest {
     protected final DatabindProvider databindProvider;
     protected final DOMMountPointService mountPointService;
 
-    protected AbstractBodyReaderTest(final EffectiveModelContext schemaContext) throws NoSuchFieldException,
-            IllegalAccessException {
+    protected AbstractBodyReaderTest(final EffectiveModelContext schemaContext) {
         mediaType = getMediaType();
 
         final var databindContext = DatabindContext.ofModel(schemaContext);
index 2aec2af83b633ac4d6046fdf0512f25b4277d7a0..0fd1c1c929ed4dd9c7f18fbe37ea79dfc646bd1f 100644 (file)
@@ -46,7 +46,7 @@ public class JsonBodyReaderTest extends AbstractBodyReaderTest {
 
     private final JsonNormalizedNodeBodyReader jsonBodyReader;
 
-    public JsonBodyReaderTest() throws Exception {
+    public JsonBodyReaderTest() {
         super(schemaContext);
         jsonBodyReader = new JsonNormalizedNodeBodyReader(databindProvider, mountPointService);
     }
index 321a3373c248f6613eb5e976def9d28e28edaea2..b51a45086eecddf89bfad6ba84b2a0cab2c4fbcb 100644 (file)
@@ -56,7 +56,7 @@ public class XmlBodyReaderTest extends AbstractBodyReaderTest {
 
     private final XmlNormalizedNodeBodyReader xmlBodyReader;
 
-    public XmlBodyReaderTest() throws Exception {
+    public XmlBodyReaderTest() {
         super(schemaContext);
         xmlBodyReader = new XmlNormalizedNodeBodyReader(databindProvider, mountPointService);
     }