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 2019/12/05 20:13:25 UTC

[isis] 07/10: ISIS-2215: fixes lombok issue

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

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

commit b79c1ed511ca3724476e7b6e9c039d06c6a48f2d
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Dec 5 18:11:49 2019 +0000

    ISIS-2215: fixes lombok issue
---
 .../isis/viewer/wicket/model/models/EntityCollectionModel.java     | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/core/viewers/wicket/model/src/main/java/org/apache/isis/viewer/wicket/model/models/EntityCollectionModel.java b/core/viewers/wicket/model/src/main/java/org/apache/isis/viewer/wicket/model/models/EntityCollectionModel.java
index e392118..423eab4 100644
--- a/core/viewers/wicket/model/src/main/java/org/apache/isis/viewer/wicket/model/models/EntityCollectionModel.java
+++ b/core/viewers/wicket/model/src/main/java/org/apache/isis/viewer/wicket/model/models/EntityCollectionModel.java
@@ -26,6 +26,7 @@ import java.util.List;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
 
+import org.apache.isis.metamodel.specloader.SpecificationLoader;
 import org.apache.wicket.Component;
 
 import org.apache.isis.applib.layout.component.CollectionLayoutData;
@@ -89,7 +90,7 @@ implements LinksProvider, UiHintContainer {
         // dynamically determine the spec of the elements
         // (ie so a List<Object> can be rendered according to the runtime type of its elements,
         // rather than the compile-time type
-        val lowestCommonSuperclassFinder = new LowestCommonSuperclassFinder();
+        final LowestCommonSuperclassFinder lowestCommonSuperclassFinder = new LowestCommonSuperclassFinder();
 
         //XXX lombok issue, cannot use val here
         final ObjectAdapterMementoService mementoService = model.getMementoService();
@@ -99,9 +100,9 @@ implements LinksProvider, UiHintContainer {
                 .map(mementoService::mementoForPojo)
                 .collect(Collectors.toList());
 
-        val specificationLoader = model.getSpecificationLoader();
+        final SpecificationLoader specificationLoader = model.getSpecificationLoader();
 
-        val elementSpec = lowestCommonSuperclassFinder.getLowestCommonSuperclass()
+        final ObjectSpecification elementSpec = lowestCommonSuperclassFinder.getLowestCommonSuperclass()
                 .map(specificationLoader::loadSpecification)
                 .orElse(collectionAsAdapter.getSpecification().getElementSpecification());