Source:
<code>private void setFactionHint(Map<Faction, Map<Faction, List<FactionHint>>> hint, Node node) throws DOMException, ParseException { <START> final String METHOD_NAME = "setFactionHint(Map<String,Map<String,List<FactionHint>>>,Node"; END> SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); String name = ""; Date start = null; Date end = null; if (node.getAttributes().getNamedItem("name") != null) { name = node.getAttributes().getNamedItem("name").getTextContent().trim(); } if (node.getAttributes().getNamedItem("start") != null) { start = df.parse(node.getAttributes().getNamedItem("start").getTextContent().trim()); } if (node.getAttributes().getNamedItem("end") != null) { end = df.parse(node.getAttributes().getNamedItem("end").getTextContent().trim()); } for (int n = 0; n < node.getChildNodes().getLength(); n++) { Node wn = node.getChildNodes().item(n); if (wn.getNodeName().equalsIgnoreCase("parties")) { Date localStart = start; Date localEnd = end; if (wn.getAttributes().getNamedItem("start") != null) { localStart = df.parse(wn.getAttributes().getNamedItem("start").getTextContent().trim()); } if (wn.getAttributes().getNamedItem("end") != null) { localEnd = df.parse(wn.getAttributes().getNamedItem("end").getTextContent().trim()); } String[] factionKeys = wn.getTextContent().trim().split(","); Faction[] parties = new Faction[factionKeys.length]; for (int i = 0; i < factionKeys.length; i++) { parties[i] = Faction.getFaction(factionKeys[i]); if (null == parties[i]) { MekHQ.getLogger().error(getClass(), METHOD_NAME, "Invalid faction code in factionhints.xml: " + parties[i]); } } addFactionHint(hint, name, localStart, localEnd, parties); } } }</code><technical_language>minor: arg type mismatch in string</technical_language>

Target:
private void setFactionHint(Map<Faction, Map<Faction, List<FactionHint>>> hint, Node node) throws DOMException, ParseException { final String METHOD_NAME = "setFactionHint(Map<Faction,Map<Faction,List<FactionHint>>>,Node"; SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); String name = ""; Date start = null; Date end = null; if (node.getAttributes().getNamedItem("name") != null) { name = node.getAttributes().getNamedItem("name").getTextContent().trim(); } if (node.getAttributes().getNamedItem("start") != null) { start = df.parse(node.getAttributes().getNamedItem("start").getTextContent().trim()); } if (node.getAttributes().getNamedItem("end") != null) { end = df.parse(node.getAttributes().getNamedItem("end").getTextContent().trim()); } for (int n = 0; n < node.getChildNodes().getLength(); n++) { Node wn = node.getChildNodes().item(n); if (wn.getNodeName().equals("parties")) { Date localStart = start; Date localEnd = end; if (wn.getAttributes().getNamedItem("start") != null) { localStart = df.parse(wn.getAttributes().getNamedItem("start").getTextContent().trim()); } if (wn.getAttributes().getNamedItem("end") != null) { localEnd = df.parse(wn.getAttributes().getNamedItem("end").getTextContent().trim()); } String[] factionKeys = wn.getTextContent().trim().split(","); Faction[] parties = new Faction[factionKeys.length]; for (int i = 0; i < factionKeys.length; i++) { parties[i] = Faction.getFaction(factionKeys[i]); if (null == parties[i]) { MekHQ.getLogger().error(getClass(), METHOD_NAME, "Invalid faction code in factionhints.xml: " + parties[i]); } } addFactionHint(hint, name, localStart, localEnd, parties); } } }