summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-05 07:26:12 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-05 07:26:12 +0000
commit78d0508ad9e44e8e7975ee852b9fefb0843a5c6f (patch)
tree242e38ca6a9199961170ba541acd867e91f09b38 /Tools
parentde4bb9f6edc1db82e0616b24e6685b27d2b66061 (diff)
downloadedk2-platforms-78d0508ad9e44e8e7975ee852b9fefb0843a5c6f.tar.xz
Fixed the unchecked warning issues when building GenBuild
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@764 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r--Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java8
-rw-r--r--Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java2
2 files changed, 9 insertions, 1 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java b/Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java
index f6b00fdf37..eb38600b3b 100644
--- a/Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java
+++ b/Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java
@@ -281,6 +281,7 @@ public class SurfaceAreaQuery {
Filename[] sourceFileNames = (Filename[]) returns;
List<String[]> outputList = new ArrayList<String[]>();
for (int i = 0; i < sourceFileNames.length; i++) {
+ @SuppressWarnings("unchecked")
List<String> archList = sourceFileNames[i].getSupArchList();
if (arch == null || arch.equalsIgnoreCase("") || archList == null || archList.contains(arch)) {
outputList.add(new String[] {sourceFileNames[i].getToolCode(),sourceFileNames[i].getStringValue()});
@@ -446,6 +447,7 @@ public class SurfaceAreaQuery {
}
archList = new ArrayList<String>();
+ @SuppressWarnings("unchecked")
List<String> archEnumList = option.getSupArchList();
if (archEnumList == null) {
archList.add(null);
@@ -572,6 +574,7 @@ public class SurfaceAreaQuery {
PackageIdentification[] packageIdList = new PackageIdentification[returns.length];
for (int i = 0; i < returns.length; i++) {
PackageDependenciesDocument.PackageDependencies.Package item = (PackageDependenciesDocument.PackageDependencies.Package) returns[i];
+ @SuppressWarnings("unchecked")
List<String> archList = item.getSupArchList();
if (arch == null || archList == null || archList.contains(arch)) {
packageGuid = item.getPackageGuid();
@@ -707,6 +710,7 @@ public class SurfaceAreaQuery {
List<String> protocolList = new ArrayList<String>();
for (int i = 0; i < returns.length; i++) {
+ @SuppressWarnings("unchecked")
List<String> archList = returnlList[i].getSupArchList();
if (archList == null || archList.contains(arch)){
protocolList.add(returnlList[i].getProtocolCName());
@@ -745,6 +749,7 @@ public class SurfaceAreaQuery {
List<String> protocolNotifyList = new ArrayList<String>();
for (int i = 0; i < returns.length; i++) {
+ @SuppressWarnings("unchecked")
List<String> archList = ((ProtocolNotify) returns[i]).getSupArchList();
if (archList == null || archList.contains(arch)){
protocolNotifyList.add(((ProtocolNotify) returns[i]).getProtocolNotifyCName());
@@ -866,6 +871,7 @@ public class SurfaceAreaQuery {
List<String> ppiNotifyList = new ArrayList<String>();
for (int i = 0; i < returns.length; i++) {
+ @SuppressWarnings("unchecked")
List<String> archList = ((PPIsDocument.PPIs.PpiNotify) returns[i]).getSupArchList();
if (archList == null || archList.contains(arch)){
ppiNotifyList.add(((PPIsDocument.PPIs.PpiNotify) returns[i]).getPpiNotifyCName());
@@ -946,6 +952,7 @@ public class SurfaceAreaQuery {
List<String> ppiList = new ArrayList<String>();
for (int i = 0; i < returns.length; i++) {
+ @SuppressWarnings("unchecked")
List<String> archList = ((PPIsDocument.PPIs.Ppi) returns[i]).getSupArchList();
if (archList == null || archList.contains(arch)){
ppiList.add(((PPIsDocument.PPIs.Ppi) returns[i]).getPpiCName());
@@ -1025,6 +1032,7 @@ public class SurfaceAreaQuery {
List<String> guidList = new ArrayList<String>();
for (int i = 0; i < returns.length; i++) {
+ @SuppressWarnings("unchecked")
List<String> archList = ((GuidsDocument.Guids.GuidCNames) returns[i]).getSupArchList();
if (archList == null || archList.contains(arch)){
guidList.add(((GuidsDocument.Guids.GuidCNames) returns[i]).getGuidCName());
diff --git a/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java b/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java
index 610739e48b..3a781c8001 100644
--- a/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java
+++ b/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java
@@ -2036,7 +2036,7 @@ public class CollectPCDAction {
}
private List<Token> getUnreferencedDynamicPcd () throws EntityException {
- List<Token> tokenArray = new ArrayList();
+ List<Token> tokenArray = new ArrayList<Token>();
Token token = null;
DynamicPcdBuildDefinitions dynamicPcdBuildDefinitions = null;
List<DynamicPcdBuildDefinitions.PcdBuildData> dynamicPcdBuildDataArray = null;