package ex;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class CNC_Sample {
    // tag CNC_COLLECTION_NAMING_CONFUSION
    Map<String, String> argList;
    // tag CNC_COLLECTION_NAMING_CONFUSION
    Set<Integer> targetMap;
    // tag CNC_COLLECTION_NAMING_CONFUSION
    List<Double> bernoulliSet;

    // tag 3xCNC_COLLECTION_NAMING_CONFUSION
    public void testCNC(Map<String, String> argSet, Set<String> nameList, List<String> nameMap) {

        nameList.addAll(transferData(nameMap));
    }

    private Set<String> transferData(List<String> oldList) {
        if (oldList.isEmpty()) {
            return Collections.emptySet();
        }
        // tag CNC_COLLECTION_NAMING_CONFUSION
        Set<String> newList = new HashSet<>();
        for (String s : oldList) {
            newList.add(s);
        }
        return newList;

    }
}

@@ -5,16 +5,17 @@
 age ex;%0A
+%0A
 import j
@@ -62,16 +62,45 @@
 ashSet;%0A
+import java.util.LinkedList;%0A
 import j
@@ -403,24 +403,82 @@
 noulliSet;%0A%0A
+    LinkedList%3CString%3E mLinkedList = new LinkedList%3C%3E();%0A%0A
     // tag 3

add CNC fp as shown by #234