Use local variable type inference (#995)
* "visitor" pattern: Use local variable type inference Update "visitor" pattern with local variable type inference. * "value-object" pattern: Use local variable type inference Update "value-object" pattern with local variable type inference. * "unit-of-work" pattern: Use local variable type inference Update "value-object" pattern with local variable type inference. * "typeobjectpattern" pattern: Use local variable type inference Update "value-object" pattern with local variable type inference.
This commit is contained in:
committed by
Ilkka Seppälä
parent
5fc03ee9f8
commit
c81c3ff1c7
@@ -97,7 +97,7 @@ public class StudentRepositoryTest {
|
||||
|
||||
@Test
|
||||
public void shouldNotWriteToDbIfContextIsNull() {
|
||||
StudentRepository studentRepository = new StudentRepository(null, studentDatabase);
|
||||
var studentRepository = new StudentRepository(null, studentDatabase);
|
||||
|
||||
studentRepository.commit();
|
||||
|
||||
@@ -106,7 +106,7 @@ public class StudentRepositoryTest {
|
||||
|
||||
@Test
|
||||
public void shouldNotWriteToDbIfNothingToCommit() {
|
||||
StudentRepository studentRepository = new StudentRepository(new HashMap<>(), studentDatabase);
|
||||
var studentRepository = new StudentRepository(new HashMap<>(), studentDatabase);
|
||||
|
||||
studentRepository.commit();
|
||||
|
||||
|
Reference in New Issue
Block a user