Eclipse Content Assist is Appending Class Name to Variable Suggestions
I don't know how to resolve the problem when you hit Return
(because i can't reproduce the issue), but here is the solution to tell eclipse to not modify the variable name automatically when you hit ctrl + space
:
In eclipse: Select Window -> Preferences -> Java -> Editor -> Content Assist
uncheck "Insert single prposals automatically".