Skip to content

Conversation

sebrose
Copy link
Contributor

@sebrose sebrose commented Apr 16, 2020

Code for the Connect 2020 session with Emmanuel

Copy link
Contributor

@aslakhellesoy aslakhellesoy left a comment

Choose a reason for hiding this comment

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

Some feedback to make the code more idiomatic

public int y;

public PersonLocation(String person_, int x_, int y_) {
person = person_;
Copy link
Contributor

Choose a reason for hiding this comment

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

More idiomatic: this.person = person - don't use underscores.

package shouty;

public class PersonLocation {
public String person;
Copy link
Contributor

Choose a reason for hiding this comment

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

Be a good citizen - declare all immutable fields as final

import io.cucumber.java.Before;
import io.cucumber.java.Scenario;

import java.io.Console;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not used

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