@Test public void shouldNotLeakMemoryForPositionIfAlreadyRemoved() { removePosition(); savePosition(); assertPositionIs(UNKNOWN_POSITION); }
void removePosition(final int aeronSessionId) { final Integer boxedAeronSessionId = aeronSessionId; sessionIdToPosition.compute(boxedAeronSessionId, removeOrSetWitness); }
FinalImagePositions implements UnavailableImageHandler { void removePosition(final int aeronSessionId) { final Integer boxedAeronSessionId = aeronSessionId; sessionIdToPosition.compute(boxedAeronSessionId, removeOrSetWitness); } }
FinalImagePositions implements UnavailableImageHandler { void removePosition(final int aeronSessionId) { final Integer boxedAeronSessionId = aeronSessionId; sessionIdToPosition.compute(boxedAeronSessionId, removeOrSetWitness); }  }
FinalImagePositions implements UnavailableImageHandler { void removePosition(final int aeronSessionId) { final Integer boxedAeronSessionId = aeronSessionId; sessionIdToPosition.compute(boxedAeronSessionId, removeOrSetWitness); }  void onUnavailableImage(final Image image); }
FinalImagePositions implements UnavailableImageHandler { void removePosition(final int aeronSessionId) { final Integer boxedAeronSessionId = aeronSessionId; sessionIdToPosition.compute(boxedAeronSessionId, removeOrSetWitness); }  void onUnavailableImage(final Image image);  }