boolean () { Processor processor = new Processor() { @Override public boolean process(Object o) { return false; // Changes false to true here, WRONG!!! } }; return true; // Changes false to true here, right }