List<UUID> insrVrfyIds = insrVrfyObjsNew.stream().map(insrVrfy -> insrVrfy.getCustomerInsrVrfyId()).collect(Collectors.toList());
For the following code i am getting a warning as i mentioned in title. Can anyone please explain me how to convert this.
here in the above code, i have a list of objects from that i want to extract all the primary keys using lambda expression.But i am getting the violation like "Replace this lambda with a method reference. (sonar.java.source not set. Assuming 8 or greater.)"