mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-11-18 20:07:12 +00:00
2019-11 - 01: final in fields
This commit is contained in:
1 parent
1582072db9
commit
5efb284863
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -5,7 +5,7 @@ import ru.otus.spring.domain.Person;
|
||||
|
||||
public class PersonServiceImpl implements PersonService {
|
||||
|
||||
private PersonDao dao;
|
||||
private final PersonDao dao;
|
||||
|
||||
public PersonServiceImpl(PersonDao dao) {
|
||||
this.dao = dao;
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import ru.otus.spring.domain.Person;
|
||||
|
||||
public class PersonServiceImpl implements PersonService {
|
||||
|
||||
private PersonDao dao;
|
||||
private final PersonDao dao;
|
||||
|
||||
public PersonServiceImpl(PersonDao dao) {
|
||||
this.dao = dao;
|
||||
|
||||
Reference in new issue
Block a user