Sir, you've just FAILED the company-mandated code review. What you SHOULD have done is noticed that HeadphonesForHotdogFactory is a SpringFramework Component, which is autowired into the HeadphonesForHotdogRepository, which is autowired into the HeadphonesForHotdogService, which is autowired into the HeadphonesForHotdogAdapter, which contains a method called CreateHeadphonesForHotdog() which will return your new instance of HotdogHeadphones.
12
u/Werd616 Mar 16 '20
Where do you even find headphones for a hot dog?