changeset 9039:13b5b515c61f

Cant use lambda in java 7 code
author gernotbelger
date Wed, 02 May 2018 12:16:47 +0200 (2018-05-02)
parents 4c5eeaff554c
children 5294114b1df4
files artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/UINFOArtifact.java
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/UINFOArtifact.java	Wed May 02 06:56:21 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/UINFOArtifact.java	Wed May 02 12:16:47 2018 +0200
@@ -10,7 +10,9 @@
 package org.dive4elements.river.artifacts.uinfo;
 
 import org.apache.commons.lang.StringUtils;
+import org.dive4elements.artifactdatabase.state.Facet;
 import org.dive4elements.artifactdatabase.state.FacetActivity;
+import org.dive4elements.artifacts.Artifact;
 import org.dive4elements.river.artifacts.D4EArtifact;
 
 /**
@@ -41,7 +43,12 @@
         // Active/deactivate facets.
         // BEWARE: we can only define one activity for "sinfo", so we use the artifact
         // as place for this
-        FacetActivity.Registry.getInstance().register(ARTIFACT_NAME, (artifact, facet, output) -> null);
+        FacetActivity.Registry.getInstance().register(ARTIFACT_NAME, new FacetActivity() {
+            @Override
+            public Boolean isInitialActive(final Artifact artifact, final Facet facet, final String output) {
+                return null;
+            }
+        });
     }
 
     /**

http://dive4elements.wald.intevation.org