bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject [17/50] bval git commit: don't trim bean nodes
Date Tue, 16 Oct 2018 17:31:21 GMT
don't trim bean nodes


Project: http://git-wip-us.apache.org/repos/asf/bval/repo
Commit: http://git-wip-us.apache.org/repos/asf/bval/commit/1cf6e8aa
Tree: http://git-wip-us.apache.org/repos/asf/bval/tree/1cf6e8aa
Diff: http://git-wip-us.apache.org/repos/asf/bval/diff/1cf6e8aa

Branch: refs/heads/bv2
Commit: 1cf6e8aa694b6afaabffa0189a18b4a3fc67793f
Parents: 2fdff81
Author: Matt Benson <mbenson@apache.org>
Authored: Mon Apr 2 16:24:31 2018 -0500
Committer: Matt Benson <mbenson@apache.org>
Committed: Tue Oct 16 12:28:20 2018 -0500

----------------------------------------------------------------------
 bval-jsr/src/main/java/org/apache/bval/jsr/job/ValidationJob.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bval/blob/1cf6e8aa/bval-jsr/src/main/java/org/apache/bval/jsr/job/ValidationJob.java
----------------------------------------------------------------------
diff --git a/bval-jsr/src/main/java/org/apache/bval/jsr/job/ValidationJob.java b/bval-jsr/src/main/java/org/apache/bval/jsr/job/ValidationJob.java
index f306d30..46246b4 100644
--- a/bval-jsr/src/main/java/org/apache/bval/jsr/job/ValidationJob.java
+++ b/bval-jsr/src/main/java/org/apache/bval/jsr/job/ValidationJob.java
@@ -592,7 +592,7 @@ public abstract class ValidationJob<T> {
         PathImpl propertyPath) {
         if (!propertyPath.isRootPath()) {
             final NodeImpl leafNode = propertyPath.getLeafNode();
-            if (leafNode.getName() == null && !leafNode.isInIterable()) {
+            if (leafNode.getName() == null && !(leafNode.getKind() == ElementKind.BEAN
|| leafNode.isInIterable())) {
                 propertyPath.removeLeafNode();
             }
         }


Mime
View raw message