|
class LockerManagerChange { |
Is it a drop-in replacement for LockerManager or intended to be used in LockerManager?
assignPackage method in LockerManager has two parameters and uses Site internally to assign a package. However, assignPackage in LockerManagerChange has only one parameter, and the calls assignLockerToPackage private method, which just returns null. Seems like the explanation in the book about this is incomplete.
ood-interview/shipping_locker/shipping_locker_deep_dive/LockerManagerChange.java
Line 9 in 29b9ddc
Is it a drop-in replacement for
LockerManageror intended to be used inLockerManager?assignPackagemethod inLockerManagerhas two parameters and usesSiteinternally to assign a package. However,assignPackageinLockerManagerChangehas only one parameter, and the callsassignLockerToPackageprivate method, which just returnsnull. Seems like the explanation in the book about this is incomplete.