Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Present the cooked potatoe directly to the consumer #147

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

developerJuiceLozzoc
Copy link

No description provided.

org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
Copy link

Choose a reason for hiding this comment

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

Please add .settings to the .gitignore.

*
* @return void
*/
public void servePotato() {

Choose a reason for hiding this comment

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

The code style of this method is discordant with the rest of the project.

} catch (NotDeliciousException e) {
potato.servePotato();
}
catch (NotDeliciousException e) {

Choose a reason for hiding this comment

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

Please fix the style of this catch as well.

} catch (NotDeliciousException e) {
potato.servePotato();
}
catch (NotDeliciousException e) {
System.err.println("Fatal error! How could Potato not be delicious?\nReason: " + e.getReason());

Choose a reason for hiding this comment

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

Suggested change
System.err.println("Fatal error! How could Potato not be delicious?\nReason: " + e.getReason());
System.err.println("Fatal error! How could Potato not be delicious?");
System.err.println("Reason: " + e.getReason());

System.out.println("Done.");
}
catch (IOException ex) {
System.out.print("whoops");

Choose a reason for hiding this comment

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

Some more explanatory messages would do well here.

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.

None yet

2 participants