Java fixup

I've been using IntelliJ code inspector on Cooja source code. I got a lot of code fixup suggestions. Some of them are mild, some of them really improve the readability of the source code.

There is still fixup suggested but I first want to see what is the feedbacks on these corrections.