Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java1.8에서 isBlank() 사용하는 오류 #5

Open
wenodev opened this issue Mar 15, 2021 · 0 comments
Open

java1.8에서 isBlank() 사용하는 오류 #5

wenodev opened this issue Mar 15, 2021 · 0 comments

Comments

@wenodev
Copy link

wenodev commented Mar 15, 2021

JavaUtils.java의 29line에 아래와 같은 코드가 주어집니다.

        if (token == null || token.isBlank())

현재 사용중인 프로젝트는 java1.8을 사용하기 때문에 build하게되면 오류가 발생하게 됩니다.

저같은 경우 apache에서 제공하는 라이브러리인 Apache Commons Lang을 사용했습니다.
공식문서 : https://commons.apache.org/proper/commons-lang/apidocs/index.html
MavenRepository : https://mvnrepository.com/artifact/org.apache.commons/commons-lang3/3.0

        if (token == null || StringUtils.isBlank(token) )

위와 같이 작성하면 동일하게 진행됩니다.

hannut91 pushed a commit that referenced this issue Dec 27, 2022
* refactor(user): User RequestDto,예외 핸들러 리팩토링

* refactor(user): UserController 웹 테스트 BDD 스타일로 변경, 인증 관련 given()절 분리

* fix(user): 회원 수정 로직에 비밀번호 변경 로직 추가

* refactor(user): UserService 유닛 테스트 BDD 스타일로 변경

* refactor(user): User 유닛 테스트 BDD 스타일로 변경 및 리팩토링

* refactor(user): User 관련 코드 매개변수 final 처리 및 주석 작업
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant