mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +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()) {
|
if(iterator.hasNext()) {
|
||||||
Owner oldOwner = iterator.next();
|
Owner oldOwner = iterator.next();
|
||||||
if(id != oldOwner.getId() || !ownerStore.get(id).equals(oldOwner)) {
|
if(id != oldOwner.getId() || !ownerStore.get(id).equals(oldOwner)) {
|
||||||
ownerStore.put(id, convertToStaticOwner(oldOwner);
|
ownerStore.put(id, StaticOwner.convertToStaticOwner(oldOwner));
|
||||||
inconsistencies++;
|
inconsistencies++;
|
||||||
violation(id, StaticOwner.convertToStaticOwner(oldOwner), ownerStore.get(id));
|
violation(id, StaticOwner.convertToStaticOwner(oldOwner), ownerStore.get(id));
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ class OwnerController {
|
||||||
String pattern = lastName + "*";
|
String pattern = lastName + "*";
|
||||||
|
|
||||||
NewOwnerStore newStore = NewOwnerStore.getInstance(owners);
|
NewOwnerStore newStore = NewOwnerStore.getInstance(owners);
|
||||||
newStore.populateStore();
|
newStore.forklift();
|
||||||
|
|
||||||
HashMap<Integer, StaticOwner> storeMap = newStore.getStore();
|
HashMap<Integer, StaticOwner> storeMap = newStore.getStore();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue