Cwe Id 601 Solution Java