This is my code :
public interface UserRepo extends CrudRepository<User, Long> {
boolean exist(Long id);
@Override
User save(User user);
}
In eclipse, there is a warning on the return type User.
Description Resource Path Location Type Type safety: The return type User for save(User) from the type UserRepo needs unchecked conversion to conform to S from the type CrudRepository UserRepo.java
May I know
- what is the reason ecplise warning on return type unchecked conversion?
- what is the correct way to get rid of the warning?
TQ