I have sonarQube running but it says that there are duplicates within these lines of code. How do resolve this in a switch statement? I am just learning how unit testing in java works so any help would be great! Answer I think below solution should work for you:
Tag: duplicates
How to extract values from a list of class objects, remove the duplicates and sort alphabetically?
I have a class Tag in java public class Tag { private int excerptID; private String description; } and I am extracting descriptions from a list of Tag objects rawTags to a set (I need to …