You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2023/04/05 21:34:16 UTC

[causeway] branch CAUSEWAY-3414 created (now 2a9dba9f79)

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

danhaywood pushed a change to branch CAUSEWAY-3414
in repository https://gitbox.apache.org/repos/asf/causeway.git


      at 2a9dba9f79 CAUSEWAY-3414: ignores TableDecorator.Default

This branch includes the following new commits:

     new 2a9dba9f79 CAUSEWAY-3414: ignores TableDecorator.Default

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[causeway] 01/01: CAUSEWAY-3414: ignores TableDecorator.Default

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch CAUSEWAY-3414
in repository https://gitbox.apache.org/repos/asf/causeway.git

commit 2a9dba9f79d93a3c4745883b336fc617c85ea19d
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Wed Apr 5 23:34:01 2023 +0200

    CAUSEWAY-3414: ignores TableDecorator.Default
---
 .../java/org/apache/causeway/core/metamodel/util/Facets.java   | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/core/metamodel/src/main/java/org/apache/causeway/core/metamodel/util/Facets.java b/core/metamodel/src/main/java/org/apache/causeway/core/metamodel/util/Facets.java
index ab084c835d..87452e2584 100644
--- a/core/metamodel/src/main/java/org/apache/causeway/core/metamodel/util/Facets.java
+++ b/core/metamodel/src/main/java/org/apache/causeway/core/metamodel/util/Facets.java
@@ -341,13 +341,15 @@ public final class Facets {
     }
     private Optional<Class<? extends TableDecorator>> parentedTableDecorator(
             final FacetHolder facetHolder) {
-        return facetHolder.lookupFacet(CollectionLayoutTableDecoratorFacet.class)
-                .map(CollectionLayoutTableDecoratorFacet::value);
+        return (Optional) facetHolder.lookupFacet(CollectionLayoutTableDecoratorFacet.class)
+                .map(CollectionLayoutTableDecoratorFacet::value)
+                .filter(x -> x != TableDecorator.Default.class);
     }
     private Optional<Class<? extends TableDecorator>> standaloneTableDecorator(
             final FacetHolder facetHolder) {
-        return facetHolder.lookupFacet(DomainObjectLayoutTableDecoratorFacet.class)
-                .map(DomainObjectLayoutTableDecoratorFacet::value);
+        return (Optional)facetHolder.lookupFacet(DomainObjectLayoutTableDecoratorFacet.class)
+                .map(DomainObjectLayoutTableDecoratorFacet::value)
+                .filter(x -> x != TableDecorator.Default.class);
     }
 
     public Optional<ObjectSpecification> elementSpec(final FacetHolder facetHolder) {