You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2020/01/20 23:46:15 UTC

[isis] 02/03: ISIS-2267: fixes compile issue

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git

commit c044f5b4eea162baba13a67692e96a416448ee4f
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Mon Jan 20 22:50:01 2020 +0000

    ISIS-2267: fixes compile issue
---
 .../service/conneg/ContentNegotiationServiceOrgApacheIsisV1.java  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/viewers/restfulobjects/rendering/src/main/java/org/apache/isis/viewer/restfulobjects/rendering/service/conneg/ContentNegotiationServiceOrgApacheIsisV1.java b/viewers/restfulobjects/rendering/src/main/java/org/apache/isis/viewer/restfulobjects/rendering/service/conneg/ContentNegotiationServiceOrgApacheIsisV1.java
index b2561e0..34be5b1 100644
--- a/viewers/restfulobjects/rendering/src/main/java/org/apache/isis/viewer/restfulobjects/rendering/service/conneg/ContentNegotiationServiceOrgApacheIsisV1.java
+++ b/viewers/restfulobjects/rendering/src/main/java/org/apache/isis/viewer/restfulobjects/rendering/service/conneg/ContentNegotiationServiceOrgApacheIsisV1.java
@@ -59,6 +59,7 @@ import lombok.val;
 @Qualifier("OrgApacheIsisV1")
 public class ContentNegotiationServiceOrgApacheIsisV1 extends ContentNegotiationServiceAbstract {
 
+
     /**
      * Unlike RO v1.0, use a single content-type of <code>application/json;profile="urn:org.apache.isis/v1"</code>.
      *
@@ -97,7 +98,12 @@ public class ContentNegotiationServiceOrgApacheIsisV1 extends ContentNegotiation
             + ";repr-type=\"list\""
             ;
 
-    private ContentNegotiationServiceForRestfulObjectsV1_0 restfulObjectsV1_0 = new ContentNegotiationServiceForRestfulObjectsV1_0();
+    private final ContentNegotiationServiceForRestfulObjectsV1_0 restfulObjectsV1_0;
+
+    public ContentNegotiationServiceOrgApacheIsisV1(final ContentNegotiationServiceForRestfulObjectsV1_0 restfulObjectsV1_0) {
+        this.restfulObjectsV1_0 = restfulObjectsV1_0;
+    }
+
 
     /**
      * Domain object is returned as a map with the RO 1.0 representation as a special '$$ro' property