[DEPLOY] production-release(v.0.3.1)#366
Conversation
[BUG] 지도 핀 조회 응답에 할인 정보 추가
There was a problem hiding this comment.
Code Review
This pull request adds a new discount field to map pins, updating the repository queries, projection interfaces (MapPinView, MapPinClusterView), the response DTO (MapPinResDTO), and the mapping service. Feedback was provided to change the primitive double types for latitude and longitude in PinItemDTO to Double to prevent potential NullPointerException issues during auto-unboxing when values are null.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| double latitude, // 위도 (latitude) | ||
| double longitude, // 경도 (longitude) | ||
| String pinDetailAddress, | ||
| String pinLocation | ||
| String pinLocation, | ||
| String discount |
There was a problem hiding this comment.
현재 PinItemDTO에서 latitude와 longitude가 기본 타입인 double로 정의되어 있습니다.
하지만 이 DTO로 변환되는 소스인 MapPinView와 MapPinClusterView 인터페이스에서는 위경도 값을 래퍼 타입인 Double로 반환하고 있습니다. 만약 데이터베이스 조회 결과나 데이터 정합성 문제로 인해 위경도 값이 null로 반환되는 경우, 자바의 오토 언박싱(auto-unboxing) 과정에서 NullPointerException이 발생할 수 있습니다.
안정적인 예외 처리를 위해 double 대신 Double 타입을 사용하는 것을 권장합니다.
| double latitude, // 위도 (latitude) | |
| double longitude, // 경도 (longitude) | |
| String pinDetailAddress, | |
| String pinLocation | |
| String pinLocation, | |
| String discount | |
| Double latitude, // 위도 (latitude) | |
| Double longitude, // 경도 (longitude) | |
| String pinDetailAddress, | |
| String pinLocation, | |
| String discount |
🔗 Related Issue
✨ 작업 개요
v.0.3.1 배포!
체크리스트
📷 이미지 첨부 (선택)
🧐 집중 리뷰 요청