Remove the warning message reported when building GenBuild.jar

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@293 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2006-05-26 13:40:20 +00:00
parent 4acf8ce7da
commit 6a4cae5897
2 changed files with 4 additions and 7 deletions

View File

@ -788,7 +788,7 @@ class PcdDatabase {
// Generate Structure Declaration for PcdTokens without Default Value
// PEI_PCD_DATABASE_INIT
//
java.util.Comparator comparator = new AlignmentSizeComp();
java.util.Comparator<Token> comparator = new AlignmentSizeComp();
List<Token> list = initTokens;
java.util.Collections.sort(list, comparator);
initCode = processTokens(initTokens);

View File

@ -144,11 +144,11 @@ public class MemoryDatabaseManager {
}
private ArrayList getDynamicRecordArray() {
private ArrayList<Token> getDynamicRecordArray() {
Token[] tokenArray = getRecordArray();
int index = 0;
int count = 0;
ArrayList al = new ArrayList();
ArrayList<Token> al = new ArrayList<Token>();
for (index = 0; index < tokenArray.length; index++) {
if (tokenArray[index].pcdType == Token.PCD_TYPE.DYNAMIC ||
@ -170,13 +170,10 @@ public class MemoryDatabaseManager {
public void getTwoPhaseDynamicRecordArray(ArrayList<Token> pei, ArrayList<Token> dxe) {
int usageInstanceIndex = 0;
int index = 0;
ArrayList tokenArrayList = getDynamicRecordArray();
ArrayList<Token> tokenArrayList = getDynamicRecordArray();
List<UsageInstance> usageInstanceArray = null;
UsageInstance usageInstance = null;
//pei = new ArrayList<Token>();
//dxe = new ArrayList<Token>();
for (index = 0; index < tokenArrayList.size(); index++) {
boolean found = false;
Token token = (Token) tokenArrayList.get(index);