sonar violation "array is stored directly"