Skip to content

Commit

Permalink
Defer Scannable#name() fallback logic
Browse files Browse the repository at this point in the history
(cherry picked from commit 009ec89)
  • Loading branch information
Stephan202 committed Nov 21, 2024
1 parent f89a23d commit f470638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reactor-core/src/main/java/reactor/core/Scannable.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2023 VMware Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2017-2024 VMware Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -449,7 +449,7 @@ default String name() {
.map(s -> s.scan(Attr.NAME))
.filter(Objects::nonNull)
.findFirst()
.orElse(stepName());
.orElseGet(this::stepName);
}

/**
Expand Down

0 comments on commit f470638

Please sign in to comment.