Skip to content

Conversation

@JoseRFJuniorLLMs
Copy link

private static ObjectNotFoundException get() {
	return new ObjectNotFoundException("Objeto não encontrado");
}

public User findById(String id) {
Optional obj = userRepository.findById(id);
return obj.orElseThrow(UserService::get);
}

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.

1 participant