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

cleanup: java generics warnings

This commit is contained in:
Andrew Gvozdev 2009-10-03 02:45:58 +00:00
parent 71155f3f15
commit db7a537b36

View file

@ -13,6 +13,20 @@ package org.eclipse.cdt.core.settings.model.util;
import org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry; import org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry;
import org.eclipse.cdt.core.settings.model.ICSettingEntry; import org.eclipse.cdt.core.settings.model.ICSettingEntry;
/**
* A storage where stored data is organized by "kind".
* In most cases kind is one of {@link ICLanguageSettingEntry}, i.e. include path, macro etc.
*
* @see ICSettingEntry#INCLUDE_PATH
* @see ICSettingEntry#INCLUDE_FILE
* @see ICSettingEntry#MACRO
* @see ICSettingEntry#MACRO_FILE
* @see ICSettingEntry#LIBRARY_PATH
* @see ICSettingEntry#LIBRARY_FILE
* @see ICSettingEntry#OUTPUT_PATH
* @see ICSettingEntry#SOURCE_PATH
*
*/
public class KindBasedStore implements Cloneable { public class KindBasedStore implements Cloneable {
private static final int INDEX_INCLUDE_PATH = 0; private static final int INDEX_INCLUDE_PATH = 0;
private static final int INDEX_INCLUDE_FILE = 1; private static final int INDEX_INCLUDE_FILE = 1;
@ -106,11 +120,11 @@ public class KindBasedStore implements Cloneable {
} }
public static int[] getLanguageEntryKinds(){ public static int[] getLanguageEntryKinds(){
return (int[])LANG_ENTRY_KINDS.clone(); return LANG_ENTRY_KINDS.clone();
} }
public static int[] getAllEntryKinds(){ public static int[] getAllEntryKinds(){
return (int[])ALL_ENTRY_KINDS.clone(); return ALL_ENTRY_KINDS.clone();
} }
private int indexToKind(int index){ private int indexToKind(int index){
@ -197,7 +211,7 @@ public class KindBasedStore implements Cloneable {
public Object clone() { public Object clone() {
try { try {
KindBasedStore clone = (KindBasedStore)super.clone(); KindBasedStore clone = (KindBasedStore)super.clone();
clone.fEntryStorage = (Object[])fEntryStorage.clone(); clone.fEntryStorage = fEntryStorage.clone();
return clone; return clone;
} catch (CloneNotSupportedException e) { } catch (CloneNotSupportedException e) {
} }