Remove pointless java invocation.