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/master Commit: 1cf6e8aa694b6afaabffa0189a18b4a3fc67793f Parents: 2fdff81 Author: Matt Benson <[email protected]> Authored: Mon Apr 2 16:24:31 2018 -0500 Committer: Matt Benson <[email protected]> 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(); } }
