mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +00:00
minor fixes
fix some small things so the code runs
This commit is contained in:
parent
359e2cfa19
commit
f5f4c25945
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ public class NewOwnerStore {
|
|||
if(iterator.hasNext()) {
|
||||
Owner oldOwner = iterator.next();
|
||||
if(id != oldOwner.getId() || !ownerStore.get(id).equals(oldOwner)) {
|
||||
ownerStore.put(id, convertToStaticOwner(oldOwner);
|
||||
ownerStore.put(id, StaticOwner.convertToStaticOwner(oldOwner));
|
||||
inconsistencies++;
|
||||
violation(id, StaticOwner.convertToStaticOwner(oldOwner), ownerStore.get(id));
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ class OwnerController {
|
|||
String pattern = lastName + "*";
|
||||
|
||||
NewOwnerStore newStore = NewOwnerStore.getInstance(owners);
|
||||
newStore.populateStore();
|
||||
newStore.forklift();
|
||||
|
||||
HashMap<Integer, StaticOwner> storeMap = newStore.getStore();
|
||||
|
||||
|
|
Loading…
Reference in a new issue