Skip to content

StoreRankingDto 생성자에 null 체크 및 검증 로직 추가 #110

@coderabbitai

Description

@coderabbitai

개요

StoreRankingDto 생성자에서 매개변수에 대한 null 체크나 유효성 검증이 없어 런타임 오류가 발생할 수 있습니다.

상세 설명

현재 StoreRankingDto 클래스의 생성자는 다음 매개변수들에 대한 null 체크가 없습니다:

  • storeId
  • storeName
  • departmentId
  • departmentName
  • totalSales
  • currentRank
  • delta

해결 방안

java.util.Objects.requireNonNull을 사용하여 각 매개변수에 대한 null 체크를 추가하고, 필요한 유효성 검증 로직을 구현해야 합니다.

관련 링크

요청자

@Jjiggu

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions