...
Code Block |
---|
public Node updateNode(int id, int newValue){ if(isInvalidId(newValue)){ throw new InvalidIdException(); } Node current = root; while(current != null){ if(current.getId() == id){ current.setValue(newValue); return current; } current = current.next; } return null; } |
Risk assesment
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
| medium | unlikely | medium | P4 | L3 |
References
Wiki Markup |
---|
\[[Ware 08|AA. Java References#Ware 08]\] |