mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 22:14:41 +00:00
Update GHobbits.java
Make GWeather argument more clear.
This commit is contained in:
1 parent
2cdc0e9872
commit
68cbcd0cd5
1 file changed
+1
-1
@@ -4,7 +4,7 @@ import com.iluwatar.WeatherType;
|
|||||||
|
|
||||||
public class GHobbits implements Race {
|
public class GHobbits implements Race {
|
||||||
@Override
|
@Override
|
||||||
public void update(GWeather o, WeatherType weatherType) {
|
public void update(GWeather weather, WeatherType weatherType) {
|
||||||
switch (weatherType) {
|
switch (weatherType) {
|
||||||
case COLD:
|
case COLD:
|
||||||
System.out.println("The hobbits are shivering in the cold weather.");
|
System.out.println("The hobbits are shivering in the cold weather.");
|
||||||
|
|||||||
Reference in new issue
Block a user