boolean () { final boolean succeeded; try { new FileInputStream("test"); succeeded = true; } catch (IOException e) { <error descr="Variable 'succeeded' might already have been assigned to">succeeded</error> = false; // should warn here } return succeeded; }