check java style before testing.
Merge pull request #41 from lyhypacm/travis

check java style before testing.