How to resolve this check style error
Method 'getUserDAO' is not designed for extension
in
public UserDAO getUserDAO() {
return userDAO;
}
How to resolve this check style error
Method 'getUserDAO' is not designed for extension
in
public UserDAO getUserDAO() {
return userDAO;
}
The tool is telling you that public methods should be final. That way a subclass won't be able to change how a class operates.
public final UserDAO getUserDAO() {
return userDAO;
}