Fixed bug and improved debug print
This commit is contained in:
parent
f9d4901b6c
commit
0dca957e43
2 changed files with 10 additions and 9 deletions
|
|
@ -157,7 +157,8 @@ public class Recipe {
|
|||
@Override
|
||||
public String toString() {
|
||||
return "Recipe{" +
|
||||
"name='" + name + '\'' +
|
||||
"id=" + id +
|
||||
", name='" + name + '\'' +
|
||||
", ingredientsCount=" + ingredients.size() +
|
||||
", preparationStepsCount=" + preparationSteps.size() +
|
||||
"}";
|
||||
|
|
@ -167,7 +168,8 @@ public class Recipe {
|
|||
public String toDetailedString() {
|
||||
// More detailed toString for debugging.
|
||||
return "Recipe{" +
|
||||
"name='" + name + '\'' +
|
||||
"id=" + id +
|
||||
", name='" + name + '\'' +
|
||||
", ingredients=" + ingredients +
|
||||
", preparationSteps=" + preparationSteps +
|
||||
'}';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue