minor Deque tidy-up

Minor Java code tidy-up, should be no change in behavior.