1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cleanup: unnecessary casts + loop to enhanced

This commit is contained in:
Andrew Gvozdev 2009-10-03 13:43:23 +00:00
parent f975a7b68d
commit aead80d4fe

View file

@ -58,9 +58,9 @@ public class CDefaultLanguageData extends CLanguageData {
fLanguageId = languageId;
if(isContentTypes)
fSourceContentTypeIds = (String[])ids.clone();
fSourceContentTypeIds = ids.clone();
else
fSourceExts = (String[])ids.clone();
fSourceExts = ids.clone();
fStore = createStore();
}
@ -85,10 +85,11 @@ public class CDefaultLanguageData extends CLanguageData {
protected EntryStore createStore(CLanguageData data){
EntryStore store = createStore();
int kinds[] = KindBasedStore.getLanguageEntryKinds();
for(int i = 0; i < kinds.length; i++){
ICLanguageSettingEntry entries[] = getEntriesToCopy(kinds[i], data);
for (int kind : kinds) {
ICLanguageSettingEntry entries[] = getEntriesToCopy(kind, data);
entries = processStoredEntries(entries, OP_COPY);
store.storeEntries(kinds[i], entries);
store.storeEntries(kind, entries);
}
return store;
}