반응형
BigDecimal로 선언된 데이터에 시각화하기 위해 DecimalFormat을 사용했습니다.
DecimalFormat("###,###,###,###");으로 서비스(@Service)에 생성하여 사용했는데
Non-thread-safe로 잡혀 아래처럼 모델(@Data)에서 선언하여 처리하도록 변경했습니다.
BigDecimal : https://halfstorage.tistory.com/45?category=875846
반응형
'- Clean Code' 카테고리의 다른 글
String literals should not be duplicated (0) | 2020.07.15 |
---|---|
Throwable.printStackTrace(...) should not be called (0) | 2020.07.15 |
Non-thread-safe fields should not be static (0) | 2020.06.19 |