fixed sonar issue about user-supplied array being stored directly in Sample.java