mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
compilation warnings
This commit is contained in:
parent
ddb0e74d4c
commit
27674723aa
1 changed files with 8 additions and 5 deletions
|
@ -28,19 +28,19 @@ public final class PathInfo {
|
||||||
|
|
||||||
private IPath[] fIncludePaths;
|
private IPath[] fIncludePaths;
|
||||||
private IPath[] fQuoteIncludePaths;
|
private IPath[] fQuoteIncludePaths;
|
||||||
private HashMap fSymbols;
|
private HashMap<String, String> fSymbols;
|
||||||
private IPath[] fIncludeFiles;
|
private IPath[] fIncludeFiles;
|
||||||
private IPath[] fMacroFiles;
|
private IPath[] fMacroFiles;
|
||||||
private int fHash;
|
private int fHash;
|
||||||
|
|
||||||
public PathInfo(IPath[] includePaths,
|
public PathInfo(IPath[] includePaths,
|
||||||
IPath[] quoteIncludePaths,
|
IPath[] quoteIncludePaths,
|
||||||
Map symbols,
|
Map<String, String> symbols,
|
||||||
IPath[] includeFiles,
|
IPath[] includeFiles,
|
||||||
IPath[] macroFiles){
|
IPath[] macroFiles){
|
||||||
fIncludePaths = includePaths != null && includePaths.length != 0 ? (IPath[])includePaths.clone() : EMPTY_PATH_ARRAY;
|
fIncludePaths = includePaths != null && includePaths.length != 0 ? (IPath[])includePaths.clone() : EMPTY_PATH_ARRAY;
|
||||||
fQuoteIncludePaths = quoteIncludePaths != null && quoteIncludePaths.length != 0 ? (IPath[])quoteIncludePaths.clone() : EMPTY_PATH_ARRAY;
|
fQuoteIncludePaths = quoteIncludePaths != null && quoteIncludePaths.length != 0 ? (IPath[])quoteIncludePaths.clone() : EMPTY_PATH_ARRAY;
|
||||||
fSymbols = symbols != null && symbols.size() != 0 ? new HashMap(symbols) : new HashMap(0);
|
fSymbols = symbols != null && symbols.size() != 0 ? new HashMap<String, String>(symbols) : new HashMap<String, String>(0);
|
||||||
fIncludeFiles = includeFiles != null && includeFiles.length != 0 ? (IPath[])includeFiles.clone() : EMPTY_PATH_ARRAY;
|
fIncludeFiles = includeFiles != null && includeFiles.length != 0 ? (IPath[])includeFiles.clone() : EMPTY_PATH_ARRAY;
|
||||||
fMacroFiles = macroFiles != null && macroFiles.length != 0 ? (IPath[])macroFiles.clone() : EMPTY_PATH_ARRAY;
|
fMacroFiles = macroFiles != null && macroFiles.length != 0 ? (IPath[])macroFiles.clone() : EMPTY_PATH_ARRAY;
|
||||||
}
|
}
|
||||||
|
@ -60,8 +60,9 @@ public final class PathInfo {
|
||||||
/**
|
/**
|
||||||
* Get defined symbols
|
* Get defined symbols
|
||||||
*/
|
*/
|
||||||
public Map getSymbols(){
|
@SuppressWarnings("unchecked")
|
||||||
return (Map)fSymbols.clone();
|
public Map<String, String> getSymbols(){
|
||||||
|
return (Map<String, String>)fSymbols.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -87,6 +88,7 @@ public final class PathInfo {
|
||||||
&& fMacroFiles.length == 0;
|
&& fMacroFiles.length == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(this == obj)
|
if(this == obj)
|
||||||
return true;
|
return true;
|
||||||
|
@ -110,6 +112,7 @@ public final class PathInfo {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int hash = fHash;
|
int hash = fHash;
|
||||||
if(hash == 0){
|
if(hash == 0){
|
||||||
|
|
Loading…
Add table
Reference in a new issue