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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ class HotelServiceImpl implements HotelService {
|
||||
@Override
|
||||
public long getNumberOfReviewsWithRating(Rating rating) {
|
||||
Long count = this.ratingCount.get(rating);
|
||||
return (count != null ? count : 0);
|
||||
return (count != null) ? count : 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user