bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject [15/50] bval git commit: no call for lazy GroupComputer
Date Tue, 16 Oct 2018 17:35:16 GMT
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/99b7488e
Tree: http://git-wip-us.apache.org/repos/asf/bval/tree/99b7488e
Diff: http://git-wip-us.apache.org/repos/asf/bval/diff/99b7488e

Branch: refs/heads/master
Commit: 99b7488eb84390e239210536aef2995116d1e889
Parents: 1413d12
Author: Matt Benson <mbenson@apache.org>
Authored: Sat Mar 31 11:10:13 2018 -0500
Committer: Matt Benson <mbenson@apache.org>
Committed: Tue Oct 16 12:28:20 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/99b7488e/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) {


Mime
View raw message