Merge branch '1.5.x' into 2.0.x
This commit is contained in:
@@ -25,7 +25,7 @@ public interface HotelSummary {
|
||||
Double getAverageRating();
|
||||
|
||||
default Integer getAverageRatingRounded() {
|
||||
return getAverageRating() == null ? null : (int) Math.round(getAverageRating());
|
||||
return (getAverageRating() != null ? (int) Math.round(getAverageRating()) : null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user