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
|
||||
public String[] getErrorParserIDs() {
|
||||
if(fErrorParserIDs != null && fErrorParserIDs.length != 0)
|
||||
return (String[])fErrorParserIDs.clone();
|
||||
return fErrorParserIDs.clone();
|
||||
return EMPTY_STRING_ARRAY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ICOutputEntry[] getOutputDirectories() {
|
||||
if(fOutputEntries != null && fOutputEntries.length != 0)
|
||||
return (ICOutputEntry[])fOutputEntries.clone();
|
||||
return fOutputEntries.clone();
|
||||
return EMPTY_OUTPUT_ENTRIES_ARRAY;
|
||||
}
|
||||
|
||||
|
@ -91,7 +91,7 @@ public class CDefaultBuildData extends CBuildData {
|
|||
if(Arrays.equals(ids, fErrorParserIDs))
|
||||
return;
|
||||
if(ids != null && ids.length != 0)
|
||||
fErrorParserIDs = (String[])ids.clone();
|
||||
fErrorParserIDs = ids.clone();
|
||||
else
|
||||
fErrorParserIDs = ids;
|
||||
|
||||
|
@ -104,7 +104,7 @@ public class CDefaultBuildData extends CBuildData {
|
|||
return;
|
||||
|
||||
if(entries != null && entries.length != 0)
|
||||
fOutputEntries = (ICOutputEntry[])entries.clone();
|
||||
fOutputEntries = entries.clone();
|
||||
else
|
||||
fOutputEntries = entries;
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ public class CDefaultTargetPlatformData extends CTargetPlatformData {
|
|||
@Override
|
||||
public String[] getBinaryParserIds() {
|
||||
if(fBinaryParserIds != null)
|
||||
return (String[])fBinaryParserIds.clone();
|
||||
return fBinaryParserIds.clone();
|
||||
return new String[0];
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ public class CDefaultTargetPlatformData extends CTargetPlatformData {
|
|||
return;
|
||||
|
||||
if(ids != null)
|
||||
fBinaryParserIds = (String[])ids.clone();
|
||||
fBinaryParserIds = ids.clone();
|
||||
else
|
||||
fBinaryParserIds = null;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue