refactoring: remove useless calls to String.valueOf()
refactoring: remove unnecessary call to super()
refactoring: remove unnecessary this qualifier
fix: check latitude and longitude when recording position history
refactoring: simplify logical expression flow
refactoring: remove unnecessary return
refactoring: replace unboxing of boolean by BooleanUtils.isTrue

Also, remove unnecessary boxing.