Fix JaxRsApiPath declaration 57/109057/4
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 24 Nov 2023 15:42:09 +0000 (16:42 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 24 Nov 2023 18:02:11 +0000 (18:02 +0000)
We are using this class to define our mapping, which means its
constructor must be public. Fixes Jersey reporting "No injection source
found for a parameter of type" fatal message.

JIRA: NETCONF-1157
Change-Id: I75031376ce3ee453d9a5d60b7917c34e57c831fe
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/jaxrs/JaxRsApiPath.java

index 1bac6008493cd8c5b2b701669a917fba156254eb..11ca1ce7a3717d7d10e91d99b21923560d0129f1 100644 (file)
@@ -17,7 +17,7 @@ import org.opendaylight.restconf.api.ApiPath;
  * A JAX-RS parsing bridge to {@link ApiPath}.
  */
 @NonNullByDefault
-final class JaxRsApiPath {
+public final class JaxRsApiPath {
     final ApiPath apiPath;
 
     /**
@@ -27,7 +27,7 @@ final class JaxRsApiPath {
      * @throws NullPointerException if {@code str} is {@code null}
      * @throws BadRequestException if {@code str} cannmot be interpreted as an {@link ApiPath}
      */
-    JaxRsApiPath(final String str) {
+    public JaxRsApiPath(final String str) {
         try {
             apiPath = ApiPath.parseUrl(str);
         } catch (ParseException e) {