- Removed deprecated call for getFlashes
- Fix checkstyle