[PATCH] Cant use lambda in java 7 code
Wald Commits
scm-commit at wald.intevation.org
Wed May 2 12:16:54 CEST 2018
# HG changeset patch
# User gernotbelger
# Date 1525256207 -7200
# Node ID 13b5b515c61ffe8c1ab3e8a4ebf9c82404b0c892
# Parent 4c5eeaff554cabd93fa4abc6732ccbb25906096c
Cant use lambda in java 7 code
diff -r 4c5eeaff554c -r 13b5b515c61f artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/UINFOArtifact.java
--- 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;
+ }
+ });
}
/**
More information about the Dive4Elements-commits
mailing list