Skip to content

bai tap 1#5

Open
nang2002hv wants to merge 1 commit into
rx-mobile-team:masterfrom
nang2002hv:bai_tap1
Open

bai tap 1#5
nang2002hv wants to merge 1 commit into
rx-mobile-team:masterfrom
nang2002hv:bai_tap1

Conversation

@nang2002hv

Copy link
Copy Markdown

image

@hoc081098

Copy link
Copy Markdown
Member

🔥

Comment on lines +30 to +32
if (!isCheck) {
throw new ExerciseNotCompletedException();
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if (!isCheck) {
throw new ExerciseNotCompletedException();
}

Comment on lines +43 to +45
if (products.isEmpty()){
throw new ExerciseNotCompletedException();
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if (products.isEmpty()){
throw new ExerciseNotCompletedException();
}

if (products.isEmpty()){
throw new ExerciseNotCompletedException();
}
return products;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

clone (copy) -> return


public class ProductService {

private final ProductInterface productDao;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

2 participants