Skip to content

Commit

Permalink
Refactor backend service Controllers and Service classes access modif…
Browse files Browse the repository at this point in the history
…iers
  • Loading branch information
ibardos committed Feb 13, 2024
1 parent bdca656 commit 7741bf5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@RestController
@RequestMapping("service/manufacturer")
public class ManufacturerController {
ManufacturerService manufacturerService;
private final ManufacturerService manufacturerService;

public ManufacturerController(ManufacturerService manufacturerService) { this.manufacturerService = manufacturerService; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@RestController
@RequestMapping("service/motorcycle/model")
public class MotorcycleModelController {
MotorcycleModelService motorcycleModelService;
private final MotorcycleModelService motorcycleModelService;

public MotorcycleModelController(MotorcycleModelService motorcycleModelService) { this.motorcycleModelService = motorcycleModelService; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@RestController
@RequestMapping("service/motorcycle/stock")
public class MotorcycleStockController {
MotorcycleStockService motorcycleStockService;
private final MotorcycleStockService motorcycleStockService;

public MotorcycleStockController(MotorcycleStockService motorcycleStockService) { this.motorcycleStockService = motorcycleStockService; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
@Service
public class ManufacturerService {
ManufacturerRepository manufacturerRepository;
private final ManufacturerRepository manufacturerRepository;

@Autowired
public ManufacturerService(ManufacturerRepository manufacturerRepository) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
@Service
public class MotorcycleModelService {
MotorcycleModelRepository motorcycleModelRepository;
private final MotorcycleModelRepository motorcycleModelRepository;

@Autowired
public MotorcycleModelService(MotorcycleModelRepository motorcycleModelRepository) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
@Service
public class MotorcycleStockService {
MotorcycleStockRepository motorcycleStockRepository;
private final MotorcycleStockRepository motorcycleStockRepository;

@Autowired
public MotorcycleStockService(MotorcycleStockRepository motorcycleStockRepository) {
Expand Down

0 comments on commit 7741bf5

Please sign in to comment.