Skip to content

Commit 6f96d31

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 0b0c205 + 07c82e4 commit 6f96d31

File tree

7 files changed

+18
-8
lines changed

7 files changed

+18
-8
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3366,6 +3366,15 @@
33663366
"contributions": [
33673367
"code"
33683368
]
3369+
},
3370+
{
3371+
"login": "mehdirahimi",
3372+
"name": "Mehdi Rahimi",
3373+
"avatar_url": "https://avatars.githubusercontent.com/u/24210842?v=4",
3374+
"profile": "https://mehdirahimi.github.io",
3375+
"contributions": [
3376+
"code"
3377+
]
33693378
}
33703379
],
33713380
"contributorsPerLine": 6,

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=iluwatar_java-design-patterns&metric=coverage)](https://sonarcloud.io/dashboard?id=iluwatar_java-design-patterns)
77
[![Join the chat at https://gitter.im/iluwatar/java-design-patterns](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/iluwatar/java-design-patterns?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
88
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
9-
[![All Contributors](https://img.shields.io/badge/all_contributors-369-orange.svg?style=flat-square)](#contributors-)
9+
[![All Contributors](https://img.shields.io/badge/all_contributors-370-orange.svg?style=flat-square)](#contributors-)
1010
<!-- ALL-CONTRIBUTORS-BADGE:END -->
1111

1212
<br/>
@@ -552,6 +552,7 @@ This project is licensed under the terms of the MIT license.
552552
<td align="center" valign="top" width="16.66%"><a href="https://github.com/depthlending"><img src="https://avatars.githubusercontent.com/u/164312726?v=4?s=100" width="100px;" alt="BiKangNing"/><br /><sub><b>BiKangNing</b></sub></a><br /><a href="https://github.com/iluwatar/java-design-patterns/commits?author=depthlending" title="Documentation">📖</a></td>
553553
<td align="center" valign="top" width="16.66%"><a href="https://github.com/TarunVishwakarma1"><img src="https://avatars.githubusercontent.com/u/138651451?v=4?s=100" width="100px;" alt="Tarun Vishwakarma"/><br /><sub><b>Tarun Vishwakarma</b></sub></a><br /><a href="https://github.com/iluwatar/java-design-patterns/commits?author=TarunVishwakarma1" title="Code">💻</a></td>
554554
<td align="center" valign="top" width="16.66%"><a href="https://github.com/shahdhoss"><img src="https://avatars.githubusercontent.com/u/132148556?v=4?s=100" width="100px;" alt="Shahd Hossam"/><br /><sub><b>Shahd Hossam</b></sub></a><br /><a href="https://github.com/iluwatar/java-design-patterns/commits?author=shahdhoss" title="Code">💻</a></td>
555+
<td align="center" valign="top" width="16.66%"><a href="https://mehdirahimi.github.io"><img src="https://avatars.githubusercontent.com/u/24210842?v=4?s=100" width="100px;" alt="Mehdi Rahimi"/><br /><sub><b>Mehdi Rahimi</b></sub></a><br /><a href="https://github.com/iluwatar/java-design-patterns/commits?author=mehdirahimi" title="Code">💻</a></td>
555556
</tr>
556557
</tbody>
557558
</table>

localization/es/strategy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public class LambdaStrategy {
127127

128128
public enum Strategy implements DragonSlayingStrategy {
129129
MeleeStrategy(() -> LOGGER.info(
130-
"With your Excalibur you severe the dragon's head!")),
130+
"With your Excalibur you sever the dragon's head!")),
131131
ProjectileStrategy(() -> LOGGER.info(
132132
"You shoot the dragon with the magical crossbow and it falls dead on the ground!")),
133133
SpellStrategy(() -> LOGGER.info(

localization/ko/strategy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public class LambdaStrategy {
123123

124124
public enum Strategy implements DragonSlayingStrategy {
125125
MeleeStrategy(() -> LOGGER.info(
126-
"With your Excalibur you severe the dragon's head!")),
126+
"With your Excalibur you sever the dragon's head!")),
127127
ProjectileStrategy(() -> LOGGER.info(
128128
"You shoot the dragon with the magical crossbow and it falls dead on the ground!")),
129129
SpellStrategy(() -> LOGGER.info(

strategy/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public class App {
127127
// Java 8 functional implementation Strategy pattern
128128
LOGGER.info(GREEN_DRAGON_SPOTTED);
129129
dragonSlayer = new DragonSlayer(
130-
() -> LOGGER.info("With your Excalibur you severe the dragon's head!"));
130+
() -> LOGGER.info("With your Excalibur you sever the dragon's head!"));
131131
dragonSlayer.goToBattle();
132132
LOGGER.info(RED_DRAGON_EMERGES);
133133
dragonSlayer.changeStrategy(() -> LOGGER.info(
@@ -162,13 +162,13 @@ Program output:
162162
13:06:36.634 [main] INFO com.iluwatar.strategy.App -- Black dragon lands before you.
163163
13:06:36.634 [main] INFO com.iluwatar.strategy.SpellStrategy -- You cast the spell of disintegration and the dragon vaporizes in a pile of dust!
164164
13:06:36.634 [main] INFO com.iluwatar.strategy.App -- Green dragon spotted ahead!
165-
13:06:36.634 [main] INFO com.iluwatar.strategy.App -- With your Excalibur you severe the dragon's head!
165+
13:06:36.634 [main] INFO com.iluwatar.strategy.App -- With your Excalibur you sever the dragon's head!
166166
13:06:36.634 [main] INFO com.iluwatar.strategy.App -- Red dragon emerges.
167167
13:06:36.635 [main] INFO com.iluwatar.strategy.App -- You shoot the dragon with the magical crossbow and it falls dead on the ground!
168168
13:06:36.635 [main] INFO com.iluwatar.strategy.App -- Black dragon lands before you.
169169
13:06:36.635 [main] INFO com.iluwatar.strategy.App -- You cast the spell of disintegration and the dragon vaporizes in a pile of dust!
170170
13:06:36.635 [main] INFO com.iluwatar.strategy.App -- Green dragon spotted ahead!
171-
13:06:36.637 [main] INFO com.iluwatar.strategy.LambdaStrategy -- With your Excalibur you severe the dragon's head!
171+
13:06:36.637 [main] INFO com.iluwatar.strategy.LambdaStrategy -- With your Excalibur you sever the dragon's head!
172172
13:06:36.637 [main] INFO com.iluwatar.strategy.App -- Red dragon emerges.
173173
13:06:36.637 [main] INFO com.iluwatar.strategy.LambdaStrategy -- You shoot the dragon with the magical crossbow and it falls dead on the ground!
174174
13:06:36.637 [main] INFO com.iluwatar.strategy.App -- Black dragon lands before you.

strategy/src/main/java/com/iluwatar/strategy/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static void main(String[] args) {
6666
// Java 8 functional implementation Strategy pattern
6767
LOGGER.info(GREEN_DRAGON_SPOTTED);
6868
dragonSlayer = new DragonSlayer(
69-
() -> LOGGER.info("With your Excalibur you severe the dragon's head!"));
69+
() -> LOGGER.info("With your Excalibur you sever the dragon's head!"));
7070
dragonSlayer.goToBattle();
7171
LOGGER.info(RED_DRAGON_EMERGES);
7272
dragonSlayer.changeStrategy(() -> LOGGER.info(

strategy/src/main/java/com/iluwatar/strategy/LambdaStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class LambdaStrategy {
3737
*/
3838
public enum Strategy implements DragonSlayingStrategy {
3939
MELEE_STRATEGY(() -> LOGGER.info(
40-
"With your Excalibur you severe the dragon's head!")),
40+
"With your Excalibur you sever the dragon's head!")),
4141
PROJECTILE_STRATEGY(() -> LOGGER.info(
4242
"You shoot the dragon with the magical crossbow and it falls dead on the ground!")),
4343
SPELL_STRATEGY(() -> LOGGER.info(

0 commit comments

Comments
 (0)