Skip to content

Added solution#665

Open
Serhii-Nosulia wants to merge 2 commits into
mate-academy:masterfrom
Serhii-Nosulia:jv-web-practice
Open

Added solution#665
Serhii-Nosulia wants to merge 2 commits into
mate-academy:masterfrom
Serhii-Nosulia:jv-web-practice

Conversation

@Serhii-Nosulia
Copy link
Copy Markdown

No description provided.

Comment on lines +19 to +23
private static final DriverService DRIVER_SERVICE =
(DriverService) INJECTOR.getInstance(DriverService.class);

private static final CarService CAR_SERVICE =
(CarService) INJECTOR.getInstance(CarService.class);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
private static final DriverService DRIVER_SERVICE =
(DriverService) INJECTOR.getInstance(DriverService.class);
private static final CarService CAR_SERVICE =
(CarService) INJECTOR.getInstance(CarService.class);
private final DriverService driverService =
(DriverService) INJECTOR.getInstance(DriverService.class);
private final CarService carService =
(CarService) INJECTOR.getInstance(CarService.class);

services should not be static, fix all controllers

Injector.getInstance("mate");
private final DriverService driverService =
(DriverService) INJECTOR.getInstance(DriverService.class);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change

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