fixed typo and improved clarity

This commit is contained in:
Bajahaw
2024-11-12 17:45:44 +01:00
committed by MiniDigger | Martin
parent 3edd9bd1ca
commit 5994ffb454

View File

@@ -113,9 +113,9 @@ public class Potato implements Tuber {
} }
/** /**
* Checks if the potato is succesfully boiled at the right amount of degrees. * Checks if the potato is successfully boiled at the right amount of degrees.
* *
* @return true if the potato has succesfully been boiled, false if otherwise * @return true if the potato has successfully been boiled, false if otherwise
* @throws BurntException if the potato has been burned during the process of cooking * @throws BurntException if the potato has been burned during the process of cooking
*/ */
public boolean hasBeenBoiledInWater() throws BurntException { public boolean hasBeenBoiledInWater() throws BurntException {
@@ -195,7 +195,7 @@ public class Potato implements Tuber {
* @return true if expired, false if otherwise * @return true if expired, false if otherwise
*/ */
public boolean isExpired() { public boolean isExpired() {
return expired; return this.expired;
} }
/** /**