NF1.0 Code Best Practices
Feature: Code Best Practices
Sponsor: Trek Global
Cases applied to Idempiere:
fb-contrib™ is an extra detector plugin to be used with the static bug finder FindBugs™.
Solve eclipse warnings
- Type Generic
- Unused Code
- Type Safety
The finally Block
The finally block always executes when the try block exits. This ensures that the finally block is executed even if an unexpected exception occurs. more.
it is good practice to free the resources using the finally block.
Make iDempiere safer using saveEx instead of save
To make iDempiere safer is better to replace all unattended save calls with saveEx.