This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Code style generall Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply locked New topic

Code style generall

Gennadi Oreper

Joined: Mar 09, 2006
Posts: 9

Have somebody try to check your code with CheckStyle?

Little questions:
- Is it to pay attention also in e.g. 'choises.txt' that maximum line width is 80?
- If I have any method 'public void doStuff(String value)' checkStyle says, that the parameter should be final declared? Is it needed by String or int?
- at javadoc comments i have a warning: 'line has trailing spaces' (at 2nd line)

What is really important of all it?

Thanks a lot...

_ ____________________ _ <br />SCJP - 1.4<br />SCJD (B&S) - In Progress<br />_ ____________________ _
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Closing this duplicated topic.

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
It is sorta covered in the JavaRanch Style Guide.
subject: Code style generall
It's not a secret anymore!