Skip to content

the task is done#2581

Open
Tacha-hub wants to merge 2 commits into
mate-academy:masterfrom
Tacha-hub:master
Open

the task is done#2581
Tacha-hub wants to merge 2 commits into
mate-academy:masterfrom
Tacha-hub:master

Conversation

@Tacha-hub

Copy link
Copy Markdown

No description provided.

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Your submission has a critical bug that must be fixed. The Truck.java class prints "Bulldozer is working" and "Bulldozer is stopping" messages instead of "Truck is working" and "Truck is stopping". This violates checklist item #2 which explicitly requires that messages indicate the correct machine type. Additionally, there are redundant empty lines after class declarations and method signatures in Bulldozer.java, Truck.java, and Excavator.java that violate checklist item #5. Please fix the message text in Truck.java to correctly print "Truck" and remove the redundant empty lines.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment thread src/main/java/core/basesyntax/Excavator.java
Comment thread src/main/java/core/basesyntax/Excavator.java
Comment thread src/main/java/core/basesyntax/Machine.java
Comment thread src/main/java/core/basesyntax/MainApp.java
Comment thread src/main/java/core/basesyntax/Bulldozer.java
Comment thread src/main/java/core/basesyntax/Truck.java
Comment thread src/main/java/core/basesyntax/Truck.java
Comment thread src/main/java/core/basesyntax/Truck.java Outdated
Comment thread src/main/java/core/basesyntax/Truck.java
Comment thread src/main/java/core/basesyntax/Truck.java
@Tacha-hub

Copy link
Copy Markdown
Author

done

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Your solution is approved. All core functional requirements are correctly implemented: the abstract Machine class, all three machine classes extending it, proper override of doWork() and stopWork() methods with correct English messages, and polymorphism using a Machine array in MainApp. The previous critical bug with Truck.java printing incorrect messages has been successfully fixed. The only remaining issues are minor style violations - redundant empty lines in Bulldozer.java after class/method declarations and an empty line in Machine.java before the closing brace. Per the checklist item #1, these empty lines after class declarations and method signatures are unnecessary and should be removed. While these are non-blocking style issues, fixing them will improve code cleanliness.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

package core.basesyntax;

public class Bulldozer extends Machine {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant empty line after class declaration. Checklist item #1 states: 'We don't need them after class declaration or method signature.'

package core.basesyntax;

public class Bulldozer extends Machine {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant empty line after class declaration. Checklist item #1 states: 'We don't need them after class declaration or method signature.'


public class Bulldozer extends Machine {

@Override

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant empty line after doWork() method declaration. Checklist item #1 states: 'We don't need them after class declaration or method signature.'


@Override
public void doWork() {
System.out.println("Bulldozer is starting");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant empty line after stopWork() method declaration. Checklist item #1 states: 'We don't need them after class declaration or method signature.'

public class Bulldozer extends Machine {

@Override
public void doWork() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant empty line after main method signature. Checklist item #1 states: 'We don't need them after class declaration or method signature.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants