NXP-12706: fix sonar violation