Skip to content
Permalink
Browse files
no call for lazy GroupComputer
  • Loading branch information
mbenson committed Oct 16, 2018
1 parent 1413d12 commit 99b7488eb84390e239210536aef2995116d1e889
Showing 1 changed file with 2 additions and 3 deletions.
@@ -48,7 +48,6 @@
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 @@ private static ValueExtractors createBaseValueExtractors(ParticipantFactory part
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 MetadataBuilders getMetadataBuilders() {
}

public GroupsComputer getGroupsComputer() {
return groupsComputer.get();
return groupsComputer;
}

private void loadAndVerifyUserCustomizations(ConfigurationState configuration) {

0 comments on commit 99b7488

Please sign in to comment.