Use explicit paths for function arguments in Java