Adam Gmoch

Greenhorn
+ Follow
since Jun 20, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Adam Gmoch

Thanks, I'll hope you right. I finally finished formatting code. In next 2-4 days I'll send it to Sun & go for beer ;)
One more question: empty lines between source sections...
is it ok ?



I'm read Code Conventions & check src formating in JDK. And to be honest they didn't follow rules which they desribed. I also check in "SCJD Exam with J2SE 5" book and there are little differences. So I'm more confused then before...
Thanks for fast reply I'll do as you say.
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.