Fix hints

- Add final modifier
- Fix redundancy (if statement)
Fix warnings

- Thanks Francisco for letting me know.