Hi,
Last two days I was digging this forum but didn't found answers for my question, maybe somebody will help me ;)
The questions are:
I using checkStyle eclipse plugin & I got few warnings which annoys me:
1) Expression can be simplified.
It shows in any conditions in which I use true/false values for example:
I know that I can use form
or with ! mark instead of false, but I hate this form. Is it "error" in this exam, or can I lose points for it ?
2) Avoid inline conditions.
Should I remove all lines with something like this:
3) Missing package-info.java file.
This is really mistery for me, can somebody tell me what & where should I put ?
4) Redundant throws: 'xxx' is unchecked exception.
This is tricky because if I delete throws clausule from method definition then java doc is not happy about description to throw which is not declared... So should I delete this kind of throws & their descriptions or ignore this warning ?
Regards.