// Generate Structure Declaration for PcdTokens without Default Value\r
// PEI_PCD_DATABASE_INIT\r
//\r
- java.util.Comparator comparator = new AlignmentSizeComp();\r
+ java.util.Comparator<Token> comparator = new AlignmentSizeComp();\r
List<Token> list = initTokens;\r
java.util.Collections.sort(list, comparator);\r
initCode = processTokens(initTokens);\r
}\r
\r
\r
- private ArrayList getDynamicRecordArray() {\r
+ private ArrayList<Token> getDynamicRecordArray() {\r
Token[] tokenArray = getRecordArray();\r
int index = 0;\r
int count = 0;\r
- ArrayList al = new ArrayList();\r
+ ArrayList<Token> al = new ArrayList<Token>();\r
\r
for (index = 0; index < tokenArray.length; index++) {\r
if (tokenArray[index].pcdType == Token.PCD_TYPE.DYNAMIC ||\r
public void getTwoPhaseDynamicRecordArray(ArrayList<Token> pei, ArrayList<Token> dxe) {\r
int usageInstanceIndex = 0;\r
int index = 0;\r
- ArrayList tokenArrayList = getDynamicRecordArray();\r
+ ArrayList<Token> tokenArrayList = getDynamicRecordArray();\r
List<UsageInstance> usageInstanceArray = null;\r
UsageInstance usageInstance = null;\r
\r
- //pei = new ArrayList<Token>();\r
- //dxe = new ArrayList<Token>();\r
-\r
for (index = 0; index < tokenArrayList.size(); index++) {\r
boolean found = false;\r
Token token = (Token) tokenArrayList.get(index);\r