Skip to content

Commit 774b86d

Browse files
committed
Polishing.
Reformat code. Add missing this. prefix for field assignment. See #2370
1 parent ebc3192 commit 774b86d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/antora/modules/ROOT/pages/customizing/overriding-sdr-response-handlers.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ class ScannerController {
1515
private final ScannerRepository repository;
1616
1717
ScannerController(ScannerRepository repository) { // <1>
18-
repository = repository;
18+
this.repository = repository;
1919
}
2020
2121
@GetMapping(path = "/scanners/search/producers") // <2>
2222
ResponseEntity<?> getProducers() {
2323
2424
List<String> producers = repository.listProducers(); // <3>
2525
26-
//
2726
// do some intermediate processing, logging, etc. with the producers
28-
//
2927
3028
CollectionModel<String> resources = CollectionModel.of(producers); // <4>
3129
@@ -66,7 +64,7 @@ class ScannerController {
6664
private final ScannerRepository repository;
6765
6866
ScannerController(ScannerRepository repository) {
69-
repository = repository;
67+
this.repository = repository;
7068
}
7169
7270
@GetMapping(path = "/scanners")

0 commit comments

Comments
 (0)