Skip to content

Commit ee2d77e

Browse files
committed
chore: formatting
1 parent 2a90148 commit ee2d77e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/dev/nicklatcham/shopthing/vehicle/VehicleController.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import org.slf4j.Logger;
66
import org.slf4j.LoggerFactory;
7-
import org.springframework.beans.factory.annotation.Autowired;
87
import org.springframework.http.ResponseEntity;
98
import org.springframework.web.bind.annotation.GetMapping;
109
import org.springframework.web.bind.annotation.PathVariable;
@@ -19,6 +18,7 @@
1918
@RestController
2019
@RequestMapping("/api/vehicles")
2120
public class VehicleController {
21+
2222
private final VehicleService vehicleService;
2323
private static final Logger logger = LoggerFactory.getLogger(VehicleController.class);
2424

@@ -42,7 +42,8 @@ public ResponseEntity<Vehicle> getVehicleById(@PathVariable final Long id) {
4242
@PostMapping
4343
public ResponseEntity<?> createVehicle(@Valid @RequestBody Vehicle newVehicle) {
4444
final Vehicle created = vehicleService.createVehicle(newVehicle);
45-
logger.debug(STR."Created Vehicle: \{newVehicle.toString()}");
45+
logger.debug("Created Vehicle: {}", newVehicle.toString());
46+
4647
return ResponseEntity.status(201).body(created);
4748
}
4849

0 commit comments

Comments
 (0)