Rule 4: Always_call_reset

Severity:
High
Rule:
If you are using ObjectStream, do remember to call reset() method as ObjectStream classes keep a reference to all objects written or read until the `reset()' method is called and hence the objects can not be garbage collected.
Reason:
If you are using ObjectStream, do remember to call reset() method as ObjectStream classes keep a reference to all objects written or read until the `reset()' method is called and hence the objects can not be garbage collected.

Rule 7: Do_not_call_finalize_directly

Severity:
Medium
Rule:
The finalize method is called by garbage collector and it should not be called directly
Reason:
The finalize method is called by garbage collector and it should not be called directly

Rule 8: Always_reuse_calls_to_java_awt_Graphics_getClipBounds_method

Severity:
Medium
Rule:
The getClipBounds method always returns a new rectangle, thereby allocating more memory on every call.
Reason:
The getClipBounds method always returns a new rectangle, thereby allocating more memory on every call.

Rule 12: Always_call_super_finalize

Severity:
High
Rule:
If you are over writing finalize method then make sure that it calls super.finalize() method.
Reason:
If you are over writing finalize method then make sure that it calls super.finalize() method.

Rule 13: Always_call_super_finalize_in_finally_block

Severity:
High
Rule:
If there is a try block in the finalize method, super.finalize() should be called from the finally block.
Reason:
If there is a try block in the finalize method, super.finalize() should be called from the finally block.