Skip to content

Commit

Permalink
Fix concurrent retrieval of expression resolvers (micronaut-projects#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rorueda committed Dec 6, 2023
1 parent 7623bc3 commit b0ba4f5
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ private Collection<PropertyExpressionResolver> getExpressionResolvers() {
synchronized (this) { // double check
exResolvers = this.expressionResolvers;
if (exResolvers == null) {
this.expressionResolvers = new ArrayList<>();
exResolvers = new ArrayList<>();
ClassLoader classLoader = (environment instanceof Environment e) ? e.getClassLoader() : environment.getClass().getClassLoader();
SoftServiceLoader.load(PropertyExpressionResolver.class, classLoader).collectAll(exResolvers);
Expand Down

0 comments on commit b0ba4f5

Please sign in to comment.