Fix PMD warning: don't reassign method parameters.