Skip to content

Conversation

@beingPracticer
Copy link

No description provided.


public Board update(Long id, Board updateData) {
Board updatedBoard = repository.get(id);
if (updateData.content != null) updatedBoard.content = updateData.content;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

만약에 null check를 하셔야한다면 Optional을 써보시는건 어떨까요?

@kkw01234
Copy link
Member

올 언제하셨어요?

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

Successfully merging this pull request may close these issues.

4 participants