Fix compiler warning and add note not to use method required for interface.