Skip to content

Commit 337491e

Browse files
committed
style: write a method invocation in a single line to make code shorter.
1 parent 49498ab commit 337491e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/ru/mystamps/web/feature/series/RestSeriesController.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,13 @@ public ResponseEntity<Void> updateSeries(
7575
continue;
7676
}
7777

78-
// CheckStyle: ignore LineLength for next 27 lines
78+
// CheckStyle: ignore LineLength for next 24 lines
7979
switch (patch.getPath()) {
8080
case "/comment":
8181
seriesService.addComment(seriesId, patch.getValue());
8282
break;
8383
case "/release_year":
84-
seriesService.addReleaseYear(
85-
seriesId,
86-
Integer.valueOf(patch.getValue()),
87-
currentUserId);
84+
seriesService.addReleaseYear(seriesId, Integer.valueOf(patch.getValue()), currentUserId);
8885
break;
8986
case "/michel_price":
9087
seriesService.addPrice(MICHEL, seriesId, patch.bigDecimalValue(), currentUserId);

0 commit comments

Comments
 (0)