CDK-581: Updates for java8

This PR alters the travis config to test java8 without pushing to master. This will not be part of the commit when merged.
`valueOf` creates an `Integer` and `parseInt` creates an `int`. The new findbugs flagged that this is a box/unbox problem.