No reference swap for Java