Grammar fixes for strategy

This commit is contained in:
Ilkka Seppälä
2021-06-22 20:24:25 +03:00
parent b014dc2f00
commit 808df54dc0
2 changed files with 12 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ import lombok.extern.slf4j.Slf4j;
* enables an algorithm's behavior to be selected at runtime.</p>
*
* <p>Before Java 8 the Strategies needed to be separate classes forcing the developer
* to write lots of boilerplate code. With modern Java it is easy to pass behavior
* to write lots of boilerplate code. With modern Java, it is easy to pass behavior
* with method references and lambdas making the code shorter and more readable.</p>
*
* <p>In this example ({@link DragonSlayingStrategy}) encapsulates an algorithm. The containing