Skip to content

특정 엔티티 서비스의 중복코드 리펙토링 #206

@tellang

Description

@tellang
public void throwExceptionWhenBlankContent(String content) {
        if (content.isBlank()) {
            throw errorHelper.badRequest(
                "Content must not be null and must contain at least one non-whitespace character");
        }
}

와 같이 Blank와 관련된 필터링 메소드가

특정 엔티티의 Service 클래스 마다 반복됨

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactoringFix invaild code style

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions