Either use a generated serialVersionUID or omit it and suppress the warning.