Skip to content

Commit 396809b

Browse files
committed
Polish Stream Advice
Issue gh-17097
1 parent 3e9d585 commit 396809b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CONTRIBUTING.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ See https://github.com/spring-projects/spring-security/tree/main#building-from-s
7979

8080
The wiki pages https://github.com/spring-projects/spring-framework/wiki/Code-Style[Code Style] and https://github.com/spring-projects/spring-framework/wiki/IntelliJ-IDEA-Editor-Settings[IntelliJ IDEA Editor Settings] define the source file coding standards we use along with some IDEA editor settings we customize.
8181

82-
To format the code as well as check the style, run `./gradlew format && ./gradlew check`.
82+
Additionally, since Streams are https://github.com/spring-projects/spring-security/issues/7154[much slower] than `for` loops, please use them judiciously.
83+
The team may ask you to change to a `for` loop if the given code is along a hot path.
8384

84-
NOTE: Since the Stream API is https://github.com/spring-projects/spring-security/issues/7154[much slower] than `for` loop, please use it judiciously.
85-
The team may ask you to change it to a `for` loop if the given code is along a hot path.
85+
To format the code as well as check the style, run `./gradlew format && ./gradlew check`.
8686

8787
[[submit-a-pull-request]]
8888
=== Submit a Pull Request

0 commit comments

Comments
 (0)