1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

cosmetics: generics

This commit is contained in:
Andrew Gvozdev 2010-01-26 02:37:07 +00:00
parent 2d7bd22a64
commit cf441acc8b

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2007 Intel Corporation and others.
* Copyright (c) 2007, 2010 Intel Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -35,8 +35,8 @@ public abstract class EntryStorageBasedLanguageData extends CDefaultLanguageData
public ICLanguageSettingEntry[] getEntries(int kind) {
AbstractEntryStorage storage = getStorage(kind);
if(storage != null){
List list = storage.getEntries(null);
return (ICLanguageSettingEntry[])list.toArray(new ICLanguageSettingEntry[list.size()]);
List<ICLanguageSettingEntry> list = storage.getEntries(null);
return list.toArray(new ICLanguageSettingEntry[list.size()]);
}
return new ICLanguageSettingEntry[0];
}