Source:
<code>protected String getJVMArguments() { String args = super.getJVMArguments(); <START> String typeUserGlobalJVMArgs = getJobProps().getString("jobtype.global.jvm.args", null); <END> if (typeUserGlobalJVMArgs != null) { args += " " + typeUserGlobalJVMArgs; } String typeSysGlobalJVMArgs = getSysProps().getString("jobtype.global.jvm.args", null); if (typeSysGlobalJVMArgs != null) { args += " " + typeSysGlobalJVMArgs; } String typeUserJVMArgs = getJobProps().getString("jobtype.jvm.args", null); if (typeUserJVMArgs != null) { args += " " + typeUserJVMArgs; } String typeSysJVMArgs = getSysProps().getString("jobtype.jvm.args", null); if (typeSysJVMArgs != null) { args += " " + typeSysJVMArgs; } String typeUserJVMArgs2 = getJobProps().getString("jvm.args", null); if (typeUserJVMArgs != null) { args += " " + typeUserJVMArgs2; } String typeSysJVMArgs2 = getSysProps().getString("jvm.args", null); if (typeSysJVMArgs != null) { args += " " + typeSysJVMArgs2; } if (shouldProxy) { info("Setting up secure proxy info for child process"); String secure; secure = " -D" + HadoopSecurityManager.USER_TO_PROXY + "=" + getJobProps().getString(HadoopSecurityManager.USER_TO_PROXY); String extraToken = getSysProps().getString(HadoopSecurityManager.OBTAIN_BINARY_TOKEN, "false"); if (extraToken != null) { secure += " -D" + HadoopSecurityManager.OBTAIN_BINARY_TOKEN + "=" + extraToken; } info("Secure settings = " + secure); args += secure; } else { info("Not setting up secure proxy info for child process"); } return args; }</code><technical_language>create constants for strings? more once</technical_language>

Target:
protected String getJVMArguments() { String args = super.getJVMArguments(); String typeUserGlobalJVMArgs = getJobProps().getString(HadoopJobUtils.JOBTYPE_GLOBAL_JVM_ARGS, null); if (typeUserGlobalJVMArgs != null) { args += " " + typeUserGlobalJVMArgs; } String typeSysGlobalJVMArgs = getSysProps().getString(HadoopJobUtils.JOBTYPE_GLOBAL_JVM_ARGS, null); if (typeSysGlobalJVMArgs != null) { args += " " + typeSysGlobalJVMArgs; } String typeUserJVMArgs = getJobProps().getString(HadoopJobUtils.JOBTYPE_JVM_ARGS, null); if (typeUserJVMArgs != null) { args += " " + typeUserJVMArgs; } String typeSysJVMArgs = getSysProps().getString(HadoopJobUtils.JOBTYPE_JVM_ARGS, null); if (typeSysJVMArgs != null) { args += " " + typeSysJVMArgs; } String typeUserJVMArgs2 = getJobProps().getString(HadoopJobUtils.JVM_ARGS, null); if (typeUserJVMArgs != null) { args += " " + typeUserJVMArgs2; } String typeSysJVMArgs2 = getSysProps().getString(HadoopJobUtils.JVM_ARGS, null); if (typeSysJVMArgs != null) { args += " " + typeSysJVMArgs2; } if (shouldProxy) { info("Setting up secure proxy info for child process"); String secure; secure = " -D" + HadoopSecurityManager.USER_TO_PROXY + "=" + getJobProps().getString(HadoopSecurityManager.USER_TO_PROXY); String extraToken = getSysProps().getString(HadoopSecurityManager.OBTAIN_BINARY_TOKEN, "false"); if (extraToken != null) { secure += " -D" + HadoopSecurityManager.OBTAIN_BINARY_TOKEN + "=" + extraToken; } info("Secure settings = " + secure); args += secure; } else { info("Not setting up secure proxy info for child process"); } return args; }