import java.util.ArrayDeque;
import java.util.Deque;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;


public class PSC_Sample {

    public void testPSC(List<PSC_Sample> samples) {
        Set<String> names = new HashSet<String>();
        for (PSC_Sample s : samples) {
            names.add(s.toString());
        }
    }

    public void testPSCEnumerated() {
        Set<String> commonWords = new HashSet<String>();
        commonWords.add("a");
        commonWords.add("an");
        commonWords.add("the");
        commonWords.add("by");
        commonWords.add("of");
        commonWords.add("and");
        commonWords.add("or");
        commonWords.add("in");
        commonWords.add("with");
        commonWords.add("my");
        commonWords.add("I");
        commonWords.add("on");
        commonWords.add("over");
        commonWords.add("under");
        commonWords.add("it");
        commonWords.add("they");
        commonWords.add("them");
    }

    public void testFPDontHaveCollectionForSizing(Iterator<Long> it) {
        Deque<Long> ad = new ArrayDeque<Long>();
        while (it.hasNext()) {
            ad.add(it.next());
        }
    }
}

@@ -39,21 +39,75 @@
 va.util.
-Deque
+ArrayList;%0Aimport java.util.Deque;%0Aimport java.util.HashMap
 ;%0Aimport
@@ -172,24 +172,46 @@
 .util.List;%0A
+import java.util.Map;%0A
 import java.
@@ -1105,14 +1105,10 @@
 oid 
-testFP
+fp
 Dont
@@ -1228,24 +1228,24 @@
 asNext()) %7B%0A
-
             
@@ -1278,11 +1278,612 @@
  %7D%0A    %7D
+%0A%0A    public void fpConditionalInLoop(Set%3CString%3E source) %7B%0A        List%3CString%3E dest = new ArrayList%3CString%3E();%0A        for (String s : source) %7B%0A            if (s.length() %3E 0) %7B%0A                dest.add(s);%0A            %7D%0A        %7D%0A    %7D%0A%0A    public void fpAllocationInLoop(Map%3CString, String%3E source) %7B%0A        Map%3CString, List%3CString%3E%3E dest = new HashMap%3CString, List%3CString%3E%3E();%0A%0A        for (Map.Entry%3CString, String%3E entry : source.entrySet()) %7B%0A%0A            List%3CString%3E l = new ArrayList%3CString%3E();%0A            l.add(entry.getValue());%0A            dest.put(entry.getKey(), l);%0A        %7D%0A    %7D
 %0A%7D%0A

add more fps for PSC