Classes from com.sun.* and sun.* packages should not be used
Unused local variables should be removed
Correctness - Suspicious reference comparison of Boolean values