Rules
| Content by Label | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Risk Assessment Summary
Rule | Severity | Likelihood | Detectable | Repairable |
|---|
Recommendations
MET00-J. Understand the difference between overriding and hiding
MET01-J. Follow good design principles while defining methods
MET02-J. Avoid ambiguous uses of overloading
MET04-J. Always provide feedback about the resulting value of a method
Rules
MET30-J. Follow the general contract while overriding the equals method
MET31-J. Ensure that hashCode() is overridden when equals() is overridden
MET32-J. Ensure that constructors do not call overridable methods
MET33-J. Do not subject overloaded methods to polymorphic invocations
MET34-J. Follow the general contract when implementing the compareTo method
MET35-J. Ensure that the clone() method calls super.clone()
Risk Assessment Summary
Recommendations
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level | |
|---|---|---|---|---|---|---|
| MET00-J | High | Likely low | unlikely No | high No | P1 P9 | L3 L2 |
| MET01-J | Medium | Probable low | unlikely No | high Yes | P1 P8 | L3 L2 |
| MET02-J | Low | low Unlikely | unlikely Yes | high No | P1 P2 | L3 |
| MET03-J | Medium | Probable low | unlikely No | high No | P1 P4 | L3 |
| MET04-J | Medium | Probable | Yes | No | P8 | L2 |
| MET05-J | Medium | medium Probable | unlikely Yes | medium No | P4 P8 | L3 L2 |
...
| MET06-J | RulesMedium | SeverityProbable | LikelihoodYes | Remediation CostNo | PriorityP8 | Level L2 MET30 |
| MET07-J | Low | low Unlikely | unlikely Yes | medium No | P2 | L3 MET31 |
| MET08-J | Low | Unlikely low | unlikely No | high No | P1 | L3 MET32 |
| MET09-J | Low | Unlikely | Yes | No | P2 | L3 |
| MET10-J | Medium | Unlikely medium | probable No | medium No | P8 P2 | L2 L3 MET34 |
| MET11-J | Low | Probable medium | unlikely Yes | medium No | P4 | L3 |
| MET12-J | Medium | Probable | Yes | No | P8 | L2 |
| MET13-J | Medium | Likely | No | No | P6 | L2 |
...
CON34-J. Avoid deadlock by requesting fine-grained locks in the proper order The CERT Sun Microsystems Secure Coding Standard for Java MET00-J. Understand the difference between overriding and hiding