no call for lazy GroupComputer
Project: http://git-wip-us.apache.org/repos/asf/bval/repo Commit: http://git-wip-us.apache.org/repos/asf/bval/commit/d211bf05 Tree: http://git-wip-us.apache.org/repos/asf/bval/tree/d211bf05 Diff: http://git-wip-us.apache.org/repos/asf/bval/diff/d211bf05 Branch: refs/heads/bv2 Commit: d211bf05803a9d3b16bde91ade459ed5a997f972 Parents: b62df46 Author: Matt Benson <[email protected]> Authored: Sat Mar 31 11:10:13 2018 -0500 Committer: Matt Benson <[email protected]> Committed: Sat Mar 31 11:10:13 2018 -0500 ---------------------------------------------------------------------- .../main/java/org/apache/bval/jsr/ApacheValidatorFactory.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bval/blob/d211bf05/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheValidatorFactory.java ---------------------------------------------------------------------- diff --git a/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheValidatorFactory.java b/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheValidatorFactory.java index de1ce3f..2b67c30 100644 --- a/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheValidatorFactory.java +++ b/bval-jsr/src/main/java/org/apache/bval/jsr/ApacheValidatorFactory.java @@ -48,7 +48,6 @@ import org.apache.bval.jsr.util.AnnotationsManager; import org.apache.bval.jsr.valueextraction.ValueExtractors; import org.apache.bval.jsr.valueextraction.ValueExtractors.OnDuplicateContainerElementKey; import org.apache.bval.util.CloseableAble; -import org.apache.bval.util.Lazy; import org.apache.bval.util.reflection.Reflection; import org.apache.commons.weaver.privilizer.Privilizing; import org.apache.commons.weaver.privilizer.Privilizing.CallTo; @@ -95,13 +94,13 @@ public class ApacheValidatorFactory implements ValidatorFactory, Cloneable { return result; } - private final Lazy<GroupsComputer> groupsComputer = new Lazy<>(GroupsComputer::new); private final Map<String, String> properties; private final AnnotationsManager annotationsManager; private final DescriptorManager descriptorManager = new DescriptorManager(this); private final MetadataBuilders metadataBuilders = new MetadataBuilders(); private final ConstraintCached constraintsCache = new ConstraintCached(); private final Collection<Closeable> toClose = new ArrayList<>(); + private final GroupsComputer groupsComputer = new GroupsComputer(); private final ParticipantFactory participantFactory; private final ValueExtractors valueExtractors; @@ -360,7 +359,7 @@ public class ApacheValidatorFactory implements ValidatorFactory, Cloneable { } public GroupsComputer getGroupsComputer() { - return groupsComputer.get(); + return groupsComputer; } private void loadAndVerifyUserCustomizations(ConfigurationState configuration) {
