-
Notifications
You must be signed in to change notification settings - Fork 1
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
Group 1 #19
base: master
Are you sure you want to change the base?
Group 1 #19
Conversation
|
||
public class Airport { | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mismatch between class name and Comment - why does an airport print military planes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is basically no documentation for the class
} | ||
} | ||
} //if | ||
else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
restructuring - remove the empty else function
//Constructor | ||
public Airport(List<? extends Plane> planes) { | ||
this.planes = planes; | ||
this.printMaxTransportMilitaryPlane(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Printing directly in a constructor is bad practice -if you really want to do that, calling another function would be good.
No description provided.