More flushes in Java code