diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/util/PathEntryTranslator.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/util/PathEntryTranslator.java index d205dec64ff..2f2ded5308e 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/util/PathEntryTranslator.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/util/PathEntryTranslator.java @@ -873,13 +873,16 @@ public class PathEntryTranslator { } PathSettingsContainer newContainer = fStorage.getChildContainer(path, true, true); + @SuppressWarnings("unchecked") KindBasedStore> cloneStore = (KindBasedStore>)fStore.clone(); IKindBasedInfo> info[] = cloneStore.getContents(); for (IKindBasedInfo> kindInfo : info) { LinkedHashMap map = kindInfo.getInfo(); if(map != null){ - kindInfo.setInfo((LinkedHashMap)map.clone()); + @SuppressWarnings("unchecked") + LinkedHashMap clone = (LinkedHashMap)map.clone(); + kindInfo.setInfo(clone); } } PathEntryCollector newCr = new PathEntryCollector(newContainer, cloneStore, fProject/*, fCfg*/); @@ -894,6 +897,7 @@ public class PathEntryTranslator { public void setEntries(int kind, ICLanguageSettingEntry entries[], Set exportedEntries){ IPath path = getPath(); HashSet parentSet = getEntriesSetCopy(kind); + @SuppressWarnings("unchecked") HashSet removedParentSet = (HashSet)parentSet.clone(); HashSet addedThisSet = new HashSet(Arrays.asList(entries)); removedParentSet.removeAll(addedThisSet); @@ -1286,7 +1290,7 @@ public class PathEntryTranslator { private static ICSettingEntry[] replaceUserEntries(ICSettingEntry[] oldEntries, ICSettingEntry[] newUsrEntries){ Set set = new LinkedHashSet(); - Class componentType = null; + Class componentType = null; if(newUsrEntries != null){ for (ICSettingEntry entry : newUsrEntries) {