Skip to content

Commit

Permalink
Update SmallRyeConfig.java
Browse files Browse the repository at this point in the history
Why not construct it directly, but construct an empty one first?
  • Loading branch information
zhouzhou19950825 authored Jul 4, 2024
1 parent 60d60ab commit 4f425fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,8 @@ private static class ConfigSources implements Serializable {
List<InterceptorWithPriority> interceptorWithPriorities = buildInterceptors(builder);

// Create the initial chain with initial sources and all interceptors
SmallRyeConfigSourceInterceptorContext current = new SmallRyeConfigSourceInterceptorContext(EMPTY, null, config);
current = new SmallRyeConfigSourceInterceptorContext(negativeSources, current, config);
//SmallRyeConfigSourceInterceptorContext current = new SmallRyeConfigSourceInterceptorContext(EMPTY, null, config);
SmallRyeConfigSourceInterceptorContext current = new SmallRyeConfigSourceInterceptorContext(negativeSources, current, config);
for (InterceptorWithPriority interceptorWithPriority : interceptorWithPriorities) {
if (interceptorWithPriority.getPriority() < 0) {
ConfigSourceInterceptor interceptor = interceptorWithPriority.getInterceptor(current);
Expand Down

0 comments on commit 4f425fc

Please sign in to comment.