| 3 | import javax.inject.Inject; |
| 4 | |
| 5 | class Thermosiphon implements Pump { |
| 6 | private final Heater heater; |
| 7 | |
| 8 | @Inject |
| 9 | Thermosiphon(Heater heater) { |
| 10 | this.heater = heater; |
| 11 | } |
| 12 | |
| 13 | @Override public void pump() { |
| 14 | if (heater.isHot()) { |
| 15 | System.out.println("=> => pumping => =>"); |
| 16 | } |
| 17 | } |
| 18 | } |
nothing calls this directly
no outgoing calls
no test coverage detected