Source:
<code>private static Container getContainerFields(Map<String, String> map) throws ParseException { Container container; container = new Container(); container.setInode(map.get(INODE)); container.setOwner(map.get(OWNER)); <START> container.setCode(map.get("code")); <END> container.setPreLoop(map.get("pre_loop")); container.setPostLoop(map.get("post_loop")); if (map.get(SHOW_ON_MENU) != null && !map.get(SHOW_ON_MENU).isEmpty()) { container.setShowOnMenu(Boolean.parseBoolean(map.get(SHOW_ON_MENU))); } container.setTitle(map.get(TITLE)); if (map.get(MOD_DATE) != null && !map.get(MOD_DATE).isEmpty()){ container.setModDate(df.parse(map.get(MOD_DATE))); } container.setModUser(map.get(MOD_USER)); if (map.get(SORT_ORDER) != null && !map.get(SORT_ORDER).isEmpty()){ container.setSortOrder(Integer.parseInt(map.get(SORT_ORDER))); } container.setFriendlyName(map.get(FRIENDLY_NAME)); if (map.get(MAX_CONTENTLETS) != null && !map.get(MAX_CONTENTLETS).isEmpty()){ container.setMaxContentlets(Integer.parseInt(map.get(MAX_CONTENTLETS))); } if (map.get(USE_DIV) != null && !map.get(USE_DIV).isEmpty()) { container.setUseDiv(Boolean.parseBoolean(map.get(USE_DIV))); } if (map.get(STATICIFY) != null && !map.get(STATICIFY).isEmpty()) { container.setStaticify(Boolean.parseBoolean(map.get(STATICIFY))); } container.setSortContentletsBy(map.get("sort_contentlets_by")); container.setLuceneQuery(map.get("lucene_query")); container.setNotes(map.get("notes")); container.setIdentifier(map.get(IDENTIFIER)); return container; }</code><technical_language>![MINOR](<LINK_2> 'Severity: MINOR') Remove this of "setCode"; is deprecated. [![rule](<LINK_1>](<LINK_0></technical_language>

Target:
private static Container getContainerFields(Map<String, String> map) throws ParseException { Container container; container = new Container(); container.setInode(map.get(INODE)); container.setOwner(map.get(OWNER)); if (map.get(IDATE) != null && !map.get(IDATE).isEmpty()) { container.setIDate(map.get(IDATE)); } container.setCode(map.get("code")); container.setPreLoop(map.get("pre_loop")); container.setPostLoop(map.get("post_loop")); if (map.get(SHOW_ON_MENU) != null && !map.get(SHOW_ON_MENU).isEmpty()) { container.setShowOnMenu(Boolean.parseBoolean(map.get(SHOW_ON_MENU))); } container.setTitle(map.get(TITLE)); if (map.get(MOD_DATE) != null && !map.get(MOD_DATE).isEmpty()){ container.setModDate(df.parse(map.get(MOD_DATE))); } container.setModUser(map.get(MOD_USER)); if (map.get(SORT_ORDER) != null && !map.get(SORT_ORDER).isEmpty()){ container.setSortOrder(Integer.parseInt(map.get(SORT_ORDER))); } container.setFriendlyName(map.get(FRIENDLY_NAME)); if (map.get(MAX_CONTENTLETS) != null && !map.get(MAX_CONTENTLETS).isEmpty()){ container.setMaxContentlets(Integer.parseInt(map.get(MAX_CONTENTLETS))); } if (map.get(USE_DIV) != null && !map.get(USE_DIV).isEmpty()) { container.setUseDiv(Boolean.parseBoolean(map.get(USE_DIV))); } if (map.get(STATICIFY) != null && !map.get(STATICIFY).isEmpty()) { container.setStaticify(Boolean.parseBoolean(map.get(STATICIFY))); } container.setSortContentletsBy(map.get("sort_contentlets_by")); container.setLuceneQuery(map.get("lucene_query")); container.setNotes(map.get("notes")); container.setIdentifier(map.get(IDENTIFIER)); return container; }