This is an automated email from the ASF dual-hosted git repository. ahuber pushed a commit to branch v2 in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/v2 by this push: new cc98937 ISIS-1991: polishing: no need for overriding immutable value getter cc98937 is described below commit cc98937e17c7ef0d0067b87cb76d17e898b12539 Author: Andi Huber <ahu...@apache.org> AuthorDate: Sun Nov 18 18:10:51 2018 +0100 ISIS-1991: polishing: no need for overriding immutable value getter Task-Url: https://issues.apache.org/jira/browse/ISIS-1991 --- .../metamodel/facets/actions/prototype/PrototypeFacetAbstract.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/actions/prototype/PrototypeFacetAbstract.java b/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/actions/prototype/PrototypeFacetAbstract.java index 2a90705..d243ee9 100644 --- a/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/actions/prototype/PrototypeFacetAbstract.java +++ b/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/actions/prototype/PrototypeFacetAbstract.java @@ -44,15 +44,11 @@ public abstract class PrototypeFacetAbstract extends MarkerFacetAbstract impleme @Override public String hides( final VisibilityContext<? extends VisibilityEvent> ic) { - return getDeploymentType().isProduction() + return deploymentType.isProduction() ? "Prototyping action not visible in production mode" : null; } - protected DeploymentType getDeploymentType() { - return deploymentType; - } - @Override public void appendAttributesTo(final Map<String, Object> attributeMap) { super.appendAttributesTo(attributeMap); attributeMap.put("deploymentType", deploymentType.name());