Reformat code use Eclipse Mars
This commit is contained in:
@@ -39,10 +39,10 @@ public class HotelSummary implements Serializable {
|
||||
public HotelSummary(City city, String name, Double averageRating) {
|
||||
this.city = city;
|
||||
this.name = name;
|
||||
this.averageRating = averageRating == null ? null : new BigDecimal(averageRating,
|
||||
MATH_CONTEXT).doubleValue();
|
||||
this.averageRatingRounded = averageRating == null ? null : (int) Math
|
||||
.round(averageRating);
|
||||
this.averageRating = averageRating == null ? null
|
||||
: new BigDecimal(averageRating, MATH_CONTEXT).doubleValue();
|
||||
this.averageRatingRounded = averageRating == null ? null
|
||||
: (int) Math.round(averageRating);
|
||||
}
|
||||
|
||||
public City getCity() {
|
||||
|
||||
@@ -36,7 +36,8 @@ class CityServiceImpl implements CityService {
|
||||
private final HotelRepository hotelRepository;
|
||||
|
||||
@Autowired
|
||||
public CityServiceImpl(CityRepository cityRepository, HotelRepository hotelRepository) {
|
||||
public CityServiceImpl(CityRepository cityRepository,
|
||||
HotelRepository hotelRepository) {
|
||||
this.cityRepository = cityRepository;
|
||||
this.hotelRepository = hotelRepository;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user