Google CodePro rules

623 Views Asked by At

I have been using Google CodePro Audit for java for few days now and i'm amazed in how much it helped me improve my code.

There are some rules which never crossed my mind and some that i don't really understand the consequences.

For instance, i always though that using utility methods were a good pratice. But there is a rule in there which states "Utility methods should be avoided except under certain circumstances" . Can anyone elaborate on that ?

Also, post your opinions in which are the MUST rules to follow using codePro.

Thank You. Regards Bruno

1

There are 1 best solutions below

0
On BEST ANSWER

I think the reason for the warning is that utility methods take away from the Object Oriented nature of Java programming.

However, I don't think I've ever worked on a Java project that didn't have at least one utility class containing only public static methods.