You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/07/11 20:16:53 UTC

[isis] branch master updated: ISIS-2401: lombok build issue: don't use val in enum bodys

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0ef5caa  ISIS-2401: lombok build issue: don't use val in enum bodys
0ef5caa is described below

commit 0ef5caae0fcc836b0ba855dcbe574586f6bf52d8
Author: Andi Huber <ah...@apache.org>
AuthorDate: Sat Jul 11 22:16:32 2020 +0200

    ISIS-2401: lombok build issue: don't use val in enum bodys
---
 .../wicket/viewer/services/mementos/ObjectMementoWkt.java    | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/viewers/wicket/viewer/src/main/java/org/apache/isis/viewer/wicket/viewer/services/mementos/ObjectMementoWkt.java b/viewers/wicket/viewer/src/main/java/org/apache/isis/viewer/wicket/viewer/services/mementos/ObjectMementoWkt.java
index 6b1d33c..edc6fd1 100644
--- a/viewers/wicket/viewer/src/main/java/org/apache/isis/viewer/wicket/viewer/services/mementos/ObjectMementoWkt.java
+++ b/viewers/wicket/viewer/src/main/java/org/apache/isis/viewer/wicket/viewer/services/mementos/ObjectMementoWkt.java
@@ -123,8 +123,7 @@ final class ObjectMementoWkt implements Serializable {
 
                 final List<Object> listOfPojos =
                         _Lists.map(memento.list, Functions.toPojo(mmc));
-                val specificationLoader = mmc.getSpecificationLoader();
-                return ManagedObject.of(specificationLoader::loadSpecification, listOfPojos);
+                return ManagedObject.of(mmc.getSpecificationLoader()::loadSpecification, listOfPojos);
             }
 
             @Override
@@ -180,9 +179,8 @@ final class ObjectMementoWkt implements Serializable {
                     ObjectMementoWkt memento,
                     MetaModelContext mmc) {
 
-                val specificationLoader = mmc.getSpecificationLoader();
                 ObjectSpecId specId = memento.objectSpecId;
-                ObjectSpecification objectSpec = specificationLoader.lookupBySpecIdElseLoad(specId);
+                ObjectSpecification objectSpec = mmc.getSpecificationLoader().lookupBySpecIdElseLoad(specId);
                 EncodableFacet encodableFacet = objectSpec.getFacet(EncodableFacet.class);
                 return encodableFacet.fromEncodedString(memento.encodableValue);
             }
@@ -230,8 +228,7 @@ final class ObjectMementoWkt implements Serializable {
                 try {
 
                     log.debug("lookup by rootOid [{}]", rootOid);
-                    val specificationLoader = mmc.getSpecificationLoader();
-                    return rootOid.loadObject(specificationLoader);
+                    return rootOid.loadObject(mmc.getSpecificationLoader());
 
                 } finally {
                     // possibly out-dated insight ...
@@ -282,9 +279,8 @@ final class ObjectMementoWkt implements Serializable {
                     ObjectMementoWkt memento,
                     MetaModelContext mmc) {
 
-                val specificationLoader = mmc.getSpecificationLoader();
                 ObjectSpecId specId = memento.objectSpecId;
-                ObjectSpecification spec = specificationLoader.lookupBySpecIdElseLoad(specId);
+                ObjectSpecification spec = mmc.getSpecificationLoader().lookupBySpecIdElseLoad(specId);
                 return mmc.getObjectManager().getObjectSerializer()
                         .deserialize(spec, memento.serializedObject);
             }