Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Reformat code. Add missing this. prefix for field assignment.

See #2370
  • Loading branch information
mp911de committed Mar 5, 2024
1 parent 8d4cf6e commit 2e43bea
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ class ScannerController {
private final ScannerRepository repository;
ScannerController(ScannerRepository repository) { // <1>
repository = repository;
this.repository = repository;
}
@GetMapping(path = "/scanners/search/producers") // <2>
ResponseEntity<?> getProducers() {
List<String> producers = repository.listProducers(); // <3>
//
// do some intermediate processing, logging, etc. with the producers
//
CollectionModel<String> resources = CollectionModel.of(producers); // <4>
Expand Down Expand Up @@ -66,7 +64,7 @@ class ScannerController {
private final ScannerRepository repository;
ScannerController(ScannerRepository repository) {
repository = repository;
this.repository = repository;
}
@GetMapping(path = "/scanners")
Expand Down

0 comments on commit 2e43bea

Please sign in to comment.