I was pretty stupid to blindly follow mad advice from Eclipse. I really don't understand why it finds an error there, nevermind