Method does not presize the allocation of a collection
问题 Sonar shows that me this bug Performance - Method does not presize the allocation of a collection Method mapping(ResponseEntity) does not presize the allocation of a collection Here is the code: private Set<ResponseDTO> mapping(ResponseEntity<String> responseEntity) { final Set<ResponseDTO> result = new HashSet<>(); final JSONObject jsonObject = new JSONObject(responseEntity.getBody()); final JSONArray jsonArray = jsonObject.optJSONArray("issues"); for (int i = 0; i < jsonArray.length(); i++)