Fix some code style issues
Fix the missing environment in the preview url.
Merge branch 'master' into FixJavaPreviewUrl
Merge pull request #666 from fmoloney/FixJavaPreviewUrl

Fix java preview url