Skip to content

Commit

Permalink
Defer Scannable#name() fallback logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Oct 3, 2024
1 parent 9c4f5f2 commit 009ec89
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 009ec89

Please sign in to comment.