Fix checkstyle issues in samples
Fix checkstyle issues with samples following the spring-javaformat upgrade. See gh-13932
This commit is contained in:
@@ -25,7 +25,7 @@ public interface HotelSummary {
|
||||
Double getAverageRating();
|
||||
|
||||
default Integer getAverageRatingRounded() {
|
||||
return (getAverageRating() != null ? (int) Math.round(getAverageRating()) : null);
|
||||
return (getAverageRating() != null) ? (int) Math.round(getAverageRating()) : null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user