Remove unnecessary " extends Object".
Remove an unnecessary null check.