import java.util.Date;
import java.util.HashMap;
import java.util.Map;


public class CIS_Sample {

	enum Sample {Hi, Lo};
	
	Map<String, Object> map = new HashMap<String, Object>();
	
	String val;
	
	public void testToStringToField() {
		val = Sample.Hi.toString();
	}
	
	public void testSBWithToStringToField(Date d, Integer i) {
		StringBuilder s = new StringBuilder();
		s.append(d);
		s.append(i);
		val = s.toString();
	}
	
	public Object testSBToMapField(Date d1, Date d2) {
		map.put("a-v",  d1 + ":" + d2);
		return map.get(d1 + "-" + d2);
	}
	
	public void fpTestToStringToFieldSB(String s) {
		val = s + "wow";
	}
}

import java.util.Date;
import java.util.HashMap;
import java.util.Map;


public class CIS_Sample {

	enum Sample {Hi, Lo};
	
	Map<String, Object> map = new HashMap<String, Object>();
	
	String val;
	
	public void testToStringToField() {
		val = Sample.Hi.toString();
	}
	
	public void testSBWithToStringToField(Date d, Integer i) {
		StringBuilder s = new StringBuilder();
		s.append(d);
		s.append(i);
		val = s.toString();
	}
	
	public Object testSBToMapField(Date d1, Date d2) {
		map.put("a-v",  d1 + ":" + d2);
		return map.get(d1 + "-" + d2);
	}
	
	public String testParseOfMapResult() {
		String s = (String) map.get("foo");
		int colonPos = s.indexOf(":");
		return s.substring(0, colonPos);
	}
	
	
	public void fpTestToStringToFieldSB(String s) {
		val = s + "wow";
	}
}

add CIS case