Rules
| Content by Label | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Risk Assessment Summary
Rule | Severity | Likelihood | Detectable | Repairable |
|---|
Guidelines
MET00-J. Understand the difference between overriding and hiding
MET00-J. Follow good design principles while defining methods
MET01-J. Avoid ambiguous uses of overloading
MET04-J. Always provide feedback about the resulting value of a method
MET02-J. Validate method parameters
MET03-J. Methods that perform a security check must be declared private or final
MET30-J. Follow the general contract while overriding the equals method
MET31-J. Ensure that hashCode() is overridden when equals() is overridden
MET04-J. Ensure that constructors do not call overridable methods
MET05-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
MET36-J. Do not use deprecated or obsolete methods
MET06-J. Do not call overridable methods from a privileged block
MET38-J. Do not invoke overridable methods on the clone under construction
MET39-J. Do not use the clone method to copy untrusted method parameters
Risk Assessment Summary
Recommendations
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level | |
|---|---|---|---|---|---|---|
| MET00-J | High | low Likely | unlikely No | medium No | P2 P9 | L3 L2 |
| MET01-J | Medium | low Probable | unlikely No | high Yes | P1 P8 | L3 L2 |
| MET02-J | Low | low Unlikely | unlikely Yes | high No | P1 P2 | L3 |
| MET03-J | Medium | low Probable | unlikely No | high No | P1 P4 | L3 |
| MET04-J | Medium | medium Probable | probable Yes | medium No | P8 | L2 |
| MET05-J | Medium | medium Probable | probable Yes | medium No | P8 | L2 |
| MET06-J | Medium | medium Probable | probable Yes | medium No | P8 | L2 |
Rules
Rules | Severity | Likelihood | Remediation Cost | Priority | Level | |
|---|---|---|---|---|---|---|
| MET30MET07-J | Low | low Unlikely | unlikely Yes | medium No | P2 | L3 MET31 |
| MET08-J | Low | low Unlikely | unlikely No | high No | P1 | L3 MET32 |
| MET09-J | Low | medium Unlikely | probable Yes | medium No | P8 P2 | L2 L3 MET33 |
| MET10-J | Medium | low Unlikely | unlikely No | high No | P1 P2 | L3 MET34 |
| MET11-J | Low | medium Probable | unlikely Yes | medium No | P4 | L3 MET36 |
| MET12-J | high Medium | likely Probable | medium Yes | P18 No | L1 P8 | |
MET37- J | high | probable | medium | P12 | L1 | |
L2 | ||||||
| MET13 MET38-J | medium Medium | probable Likely | low No | P12 No | L1 P6 | |
MET39-J | high | likely | low | P27 | L1 | |
L2 |
...
CON44-J. Do not expect sleep() and yield() methods to have any synchronization semantics The CERT Sun Microsystems Secure Coding Standard for Java MET00-J. Understand the difference between overriding and hiding