Fixed the unchecked warning issues when building GenBuild
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 5 Jul 2006 07:26:12 +0000 (07:26 +0000)
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 5 Jul 2006 07:26:12 +0000 (07:26 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@764 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java
Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java

index f6b00fdf37631784859dda3c2829d04f2732b06a..eb38600b3bcf76c5b5f33e523e555230e9c024b5 100644 (file)
@@ -281,6 +281,7 @@ public class SurfaceAreaQuery {
         Filename[] sourceFileNames = (Filename[]) returns;\r
         List<String[]> outputList = new ArrayList<String[]>();\r
         for (int i = 0; i < sourceFileNames.length; i++) {\r
+            @SuppressWarnings("unchecked")\r
             List<String> archList = sourceFileNames[i].getSupArchList();\r
             if (arch == null || arch.equalsIgnoreCase("") || archList == null || archList.contains(arch)) {\r
                 outputList.add(new String[] {sourceFileNames[i].getToolCode(),sourceFileNames[i].getStringValue()});\r
@@ -446,6 +447,7 @@ public class SurfaceAreaQuery {
             }\r
 \r
             archList = new ArrayList<String>();\r
+            @SuppressWarnings("unchecked")\r
             List<String> archEnumList = option.getSupArchList();            \r
             if (archEnumList == null) {\r
                 archList.add(null);\r
@@ -572,6 +574,7 @@ public class SurfaceAreaQuery {
         PackageIdentification[] packageIdList = new PackageIdentification[returns.length];\r
         for (int i = 0; i < returns.length; i++) {\r
             PackageDependenciesDocument.PackageDependencies.Package item = (PackageDependenciesDocument.PackageDependencies.Package) returns[i];\r
+            @SuppressWarnings("unchecked")\r
             List<String> archList = item.getSupArchList();\r
             if (arch == null || archList == null || archList.contains(arch)) {\r
                 packageGuid = item.getPackageGuid();\r
@@ -707,6 +710,7 @@ public class SurfaceAreaQuery {
         List<String> protocolList = new ArrayList<String>();\r
         \r
         for (int i = 0; i < returns.length; i++) {\r
+            @SuppressWarnings("unchecked")\r
             List<String> archList = returnlList[i].getSupArchList();\r
             if (archList == null || archList.contains(arch)){\r
                 protocolList.add(returnlList[i].getProtocolCName());\r
@@ -745,6 +749,7 @@ public class SurfaceAreaQuery {
         List<String> protocolNotifyList = new ArrayList<String>();\r
         \r
         for (int i = 0; i < returns.length; i++) {\r
+            @SuppressWarnings("unchecked")\r
             List<String> archList = ((ProtocolNotify) returns[i]).getSupArchList();\r
             if (archList == null || archList.contains(arch)){\r
                 protocolNotifyList.add(((ProtocolNotify) returns[i]).getProtocolNotifyCName());\r
@@ -866,6 +871,7 @@ public class SurfaceAreaQuery {
         \r
         List<String> ppiNotifyList = new ArrayList<String>();\r
         for (int i = 0; i < returns.length; i++) {\r
+            @SuppressWarnings("unchecked")\r
             List<String> archList = ((PPIsDocument.PPIs.PpiNotify) returns[i]).getSupArchList();\r
             if (archList == null || archList.contains(arch)){\r
                 ppiNotifyList.add(((PPIsDocument.PPIs.PpiNotify) returns[i]).getPpiNotifyCName()); \r
@@ -946,6 +952,7 @@ public class SurfaceAreaQuery {
 \r
         List<String> ppiList = new ArrayList<String>();\r
         for (int i = 0; i < returns.length; i++) {\r
+            @SuppressWarnings("unchecked")\r
             List<String> archList = ((PPIsDocument.PPIs.Ppi) returns[i]).getSupArchList();\r
             if (archList == null || archList.contains(arch)){\r
                 ppiList.add(((PPIsDocument.PPIs.Ppi) returns[i]).getPpiCName());    \r
@@ -1025,6 +1032,7 @@ public class SurfaceAreaQuery {
 \r
         List<String> guidList = new ArrayList<String>();\r
         for (int i = 0; i < returns.length; i++) {\r
+            @SuppressWarnings("unchecked")\r
             List<String> archList = ((GuidsDocument.Guids.GuidCNames) returns[i]).getSupArchList();\r
             if (archList == null || archList.contains(arch)){\r
                 guidList.add(((GuidsDocument.Guids.GuidCNames) returns[i]).getGuidCName());    \r
index 610739e48b90f1a177b02bd10d97864dceddbfe2..3a781c8001160160548ed411c8fcef3a9eb5730d 100644 (file)
@@ -2036,7 +2036,7 @@ public class CollectPCDAction {
     }\r
 \r
     private List<Token> getUnreferencedDynamicPcd () throws EntityException {\r
-        List<Token>                                   tokenArray                 = new ArrayList();\r
+        List<Token>                                   tokenArray                 = new ArrayList<Token>();\r
         Token                                         token                      = null;\r
         DynamicPcdBuildDefinitions                    dynamicPcdBuildDefinitions = null;\r
         List<DynamicPcdBuildDefinitions.PcdBuildData> dynamicPcdBuildDataArray   = null;\r