Skip to content

Commit

Permalink
Build instance with default configuration only when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
valery1707 committed Dec 26, 2023
1 parent 55d2705 commit bb63d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/yegor256/WeAreOnline.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private static OnlineMeans retrieveSettings(final ExtensionContext context) {
.flatMap(
element -> AnnotationUtils.findAnnotation(element, OnlineMeans.class)
)
.orElse(new DefaultOnlineMeans());
.orElseGet(DefaultOnlineMeans::new);
}

/**
Expand Down

0 comments on commit bb63d1f

Please sign in to comment.