mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-14 04:16:14 +00:00
fix: change 'swinged' to 'swung' in sword.java and hammer.java of bridge pattern (#1779)
* minor (non-coding) change * Update Sword.java
This commit is contained in:
1 parent
dafe02f1be
commit
6cf025447a
2 files changed
+2
-2
No files matched your search
@@ -43,7 +43,7 @@ public class Hammer implements Weapon {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void swing() {
|
public void swing() {
|
||||||
LOGGER.info("The hammer is swinged.");
|
LOGGER.info("The hammer is swung.");
|
||||||
enchantment.apply();
|
enchantment.apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class Sword implements Weapon {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void swing() {
|
public void swing() {
|
||||||
LOGGER.info("The sword is swinged.");
|
LOGGER.info("The sword is swung.");
|
||||||
enchantment.apply();
|
enchantment.apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user