Correct import order, remove trailing whitespace
Set JDK version as default only

and do not override the version set in the prefs file.