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:
parent
71155f3f15
commit
db7a537b36
1 changed files with 17 additions and 3 deletions
|
@ -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.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 {
|
||||
private static final int INDEX_INCLUDE_PATH = 0;
|
||||
private static final int INDEX_INCLUDE_FILE = 1;
|
||||
|
@ -106,11 +120,11 @@ public class KindBasedStore implements Cloneable {
|
|||
}
|
||||
|
||||
public static int[] getLanguageEntryKinds(){
|
||||
return (int[])LANG_ENTRY_KINDS.clone();
|
||||
return LANG_ENTRY_KINDS.clone();
|
||||
}
|
||||
|
||||
public static int[] getAllEntryKinds(){
|
||||
return (int[])ALL_ENTRY_KINDS.clone();
|
||||
return ALL_ENTRY_KINDS.clone();
|
||||
}
|
||||
|
||||
private int indexToKind(int index){
|
||||
|
@ -197,7 +211,7 @@ public class KindBasedStore implements Cloneable {
|
|||
public Object clone() {
|
||||
try {
|
||||
KindBasedStore clone = (KindBasedStore)super.clone();
|
||||
clone.fEntryStorage = (Object[])fEntryStorage.clone();
|
||||
clone.fEntryStorage = fEntryStorage.clone();
|
||||
return clone;
|
||||
} catch (CloneNotSupportedException e) {
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue