mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 16:56:04 +02:00
cosmetics: unnecessary cast warnings fixed
This commit is contained in:
parent
cbd30458cd
commit
82b1c4ed6b
2 changed files with 6 additions and 6 deletions
|
@ -65,14 +65,14 @@ public class CDefaultBuildData extends CBuildData {
|
||||||
@Override
|
@Override
|
||||||
public String[] getErrorParserIDs() {
|
public String[] getErrorParserIDs() {
|
||||||
if(fErrorParserIDs != null && fErrorParserIDs.length != 0)
|
if(fErrorParserIDs != null && fErrorParserIDs.length != 0)
|
||||||
return (String[])fErrorParserIDs.clone();
|
return fErrorParserIDs.clone();
|
||||||
return EMPTY_STRING_ARRAY;
|
return EMPTY_STRING_ARRAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ICOutputEntry[] getOutputDirectories() {
|
public ICOutputEntry[] getOutputDirectories() {
|
||||||
if(fOutputEntries != null && fOutputEntries.length != 0)
|
if(fOutputEntries != null && fOutputEntries.length != 0)
|
||||||
return (ICOutputEntry[])fOutputEntries.clone();
|
return fOutputEntries.clone();
|
||||||
return EMPTY_OUTPUT_ENTRIES_ARRAY;
|
return EMPTY_OUTPUT_ENTRIES_ARRAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ public class CDefaultBuildData extends CBuildData {
|
||||||
if(Arrays.equals(ids, fErrorParserIDs))
|
if(Arrays.equals(ids, fErrorParserIDs))
|
||||||
return;
|
return;
|
||||||
if(ids != null && ids.length != 0)
|
if(ids != null && ids.length != 0)
|
||||||
fErrorParserIDs = (String[])ids.clone();
|
fErrorParserIDs = ids.clone();
|
||||||
else
|
else
|
||||||
fErrorParserIDs = ids;
|
fErrorParserIDs = ids;
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ public class CDefaultBuildData extends CBuildData {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(entries != null && entries.length != 0)
|
if(entries != null && entries.length != 0)
|
||||||
fOutputEntries = (ICOutputEntry[])entries.clone();
|
fOutputEntries = entries.clone();
|
||||||
else
|
else
|
||||||
fOutputEntries = entries;
|
fOutputEntries = entries;
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class CDefaultTargetPlatformData extends CTargetPlatformData {
|
||||||
@Override
|
@Override
|
||||||
public String[] getBinaryParserIds() {
|
public String[] getBinaryParserIds() {
|
||||||
if(fBinaryParserIds != null)
|
if(fBinaryParserIds != null)
|
||||||
return (String[])fBinaryParserIds.clone();
|
return fBinaryParserIds.clone();
|
||||||
return new String[0];
|
return new String[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ public class CDefaultTargetPlatformData extends CTargetPlatformData {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(ids != null)
|
if(ids != null)
|
||||||
fBinaryParserIds = (String[])ids.clone();
|
fBinaryParserIds = ids.clone();
|
||||||
else
|
else
|
||||||
fBinaryParserIds = null;
|
fBinaryParserIds = null;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue