Skip to content

Conversation

@FranticSkipper
Copy link

No description provided.

Copy link

@Elena-Bruyako Elena-Bruyako left a comment

Choose a reason for hiding this comment

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

Good job! Let's improve your solution


import mate.academy.model.User;

public class AuthenticationService {

Choose a reason for hiding this comment

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

Suggested change
public class AuthenticationService {
public class AuthenticationService {
private final UserService userService = new UserService();

*/
public boolean login(String email, String password) {
return false;
UserService userService = new UserService();

Choose a reason for hiding this comment

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

it's better to make it class-level variable to avoid creating new UserService each time you call login method

Suggested change
UserService userService = new UserService();

@FranticSkipper
Copy link
Author

i have added change in 8bdfc78

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.

3 participants