#860 - Polishing.

Removed some superfluous variables.
Replaces Hamcrest with AssertJ.
Formatting.
This commit is contained in:
Jens Schauder
2019-03-12 08:21:37 +01:00
committed by Greg Turnquist
parent c35a700eca
commit dbf9e4bc73
6 changed files with 28 additions and 32 deletions

View File

@@ -155,8 +155,7 @@ public class EmployeeController {
// end::patch[]
{
Employee oldEmployee = EMPLOYEES.get(id);
Employee newEmployee = oldEmployee;
Employee newEmployee = EMPLOYEES.get(id);
if (employee.getContent().getName() != null) {
newEmployee = newEmployee.withName(employee.getContent().getName());