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

Group 1 #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Group 1 #19

wants to merge 1 commit into from

Conversation

johanneskross
Copy link

No description provided.


public class Airport {

/**
Copy link
Collaborator

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?

Copy link
Collaborator

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 {
Copy link
Collaborator

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();
Copy link
Collaborator

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.

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