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 2017/10/16 10:44:57 UTC
[isis] 33/38: ISIS-1742: removes unused
AdapterAndProperty.Functions constants
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch dev/2.0.0/ISIS-1742-remove-deprecations
in repository https://gitbox.apache.org/repos/asf/isis.git
commit f13eca95839770ce1b02c9e7902d37cb7a734c02
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Mon Oct 16 11:32:11 2017 +0100
ISIS-1742: removes unused AdapterAndProperty.Functions constants
---
.../runtime/services/changes/AdapterAndProperty.java | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/services/changes/AdapterAndProperty.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/services/changes/AdapterAndProperty.java
index a1572ec..9c4f5f7 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/services/changes/AdapterAndProperty.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/services/changes/AdapterAndProperty.java
@@ -18,10 +18,6 @@
*/
package org.apache.isis.core.runtime.services.changes;
-import java.util.Map;
-
-import com.google.common.base.Function;
-
import org.apache.isis.applib.services.bookmark.Bookmark;
import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
import org.apache.isis.core.metamodel.adapter.oid.RootOid;
@@ -103,23 +99,10 @@ public class AdapterAndProperty {
return bookmarkStr + " , " + getProperty().getId();
}
- public Object getPropertyValue() {
+ Object getPropertyValue() {
ObjectAdapter referencedAdapter = property.get(objectAdapter, InteractionInitiatedBy.FRAMEWORK);
return referencedAdapter == null ? null : referencedAdapter.getObject();
}
- static class Functions {
- private Functions() {
- }
-
- static final Function<Map.Entry<AdapterAndProperty, PreAndPostValues>, ObjectAdapter> GET_ADAPTER = new Function<Map.Entry<AdapterAndProperty, PreAndPostValues>, ObjectAdapter>() {
- @Override
- public ObjectAdapter apply(Map.Entry<AdapterAndProperty, PreAndPostValues> input) {
- final AdapterAndProperty aap = input.getKey();
- return aap.getAdapter();
- }
- };
-
- }
}
--
To stop receiving notification emails like this one, please contact
"commits@isis.apache.org" <co...@isis.apache.org>.