From 6a4cae58979223de2710858bde490d7e24da3e9e Mon Sep 17 00:00:00 2001 From: qwang12 Date: Fri, 26 May 2006 13:40:20 +0000 Subject: 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 --- .../org/tianocore/build/pcd/action/CollectPCDAction.java | 2 +- .../org/tianocore/build/pcd/entity/MemoryDatabaseManager.java | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'Tools') 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 9df18008cc..7b86e6b88f 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java +++ b/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java @@ -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 comparator = new AlignmentSizeComp(); List list = initTokens; java.util.Collections.sort(list, comparator); initCode = processTokens(initTokens); diff --git a/Tools/Source/GenBuild/org/tianocore/build/pcd/entity/MemoryDatabaseManager.java b/Tools/Source/GenBuild/org/tianocore/build/pcd/entity/MemoryDatabaseManager.java index 7df96398ef..0acdad0948 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/pcd/entity/MemoryDatabaseManager.java +++ b/Tools/Source/GenBuild/org/tianocore/build/pcd/entity/MemoryDatabaseManager.java @@ -144,11 +144,11 @@ public class MemoryDatabaseManager { } - private ArrayList getDynamicRecordArray() { + private ArrayList getDynamicRecordArray() { Token[] tokenArray = getRecordArray(); int index = 0; int count = 0; - ArrayList al = new ArrayList(); + ArrayList al = new ArrayList(); 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 pei, ArrayList dxe) { int usageInstanceIndex = 0; int index = 0; - ArrayList tokenArrayList = getDynamicRecordArray(); + ArrayList tokenArrayList = getDynamicRecordArray(); List usageInstanceArray = null; UsageInstance usageInstance = null; - //pei = new ArrayList(); - //dxe = new ArrayList(); - for (index = 0; index < tokenArrayList.size(); index++) { boolean found = false; Token token = (Token) tokenArrayList.get(index); -- cgit v1.2.3