Remove these lines https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/api/impl/PatientServiceImpl.java#L1626-L1628
This instruction assigns a value to a variable, but the value is not read or used in any subsequent instruction. Often, this indicates an error, because the value computed is never used. If a local variable is declared but not used, it is dead code and should be removed. Doing so will improve maintainability because developers will not wonder what the variable is used for.