diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-23 09:48:03 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-23 09:48:03 +0000 |
commit | 9d3d149f81a92771cffb5aacc99c324dde9847ab (patch) | |
tree | c71b1b20df6e39a377c9d6200b95f42988e241a4 /Tools/Java/Source | |
parent | 8c8a13bf5c03471e9095d9d8312033d3c874c973 (diff) | |
download | edk2-platforms-9d3d149f81a92771cffb5aacc99c324dde9847ab.tar.xz |
Fixed the fake circular denpendency of library instance.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2285 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java/Source')
-rw-r--r-- | Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutogenLibOrder.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutogenLibOrder.java b/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutogenLibOrder.java index ca415daf90..7e87e28ba3 100644 --- a/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutogenLibOrder.java +++ b/Tools/Java/Source/GenBuild/org/tianocore/build/autogen/AutogenLibOrder.java @@ -91,7 +91,7 @@ public class AutogenLibOrder { // Create library class consume database.
//
libClassConsmList = saq.getLibraryClasses(CommonDefinition.ALWAYSCONSUMED, arch, null);
- if (libClassConsmList.length > 0) {
+ if (libClassConsmList != null) {
if (this.libInstanceConsumes.containsKey(libInstance)) {
throw new AutoGenException(
libraryList[i].getName()
@@ -105,7 +105,7 @@ public class AutogenLibOrder { // Create library class implementer database
//
libClassDeclList = saq.getLibraryClasses(CommonDefinition.ALWAYSPRODUCED, arch, null);
- if (libClassDeclList.length > 0) {
+ if (libClassDeclList != null) {
this.libInstanceProduces.put(libInstance, libClassDeclList);
for (int j = 0; j < libClassDeclList.length; j++) {
if (this.libClassProducer.containsKey(libClassDeclList[j])) {
@@ -132,9 +132,6 @@ public class AutogenLibOrder { for (int k = 0; k < libraryList.length; ++k) {
ModuleIdentification consumer = libraryList[k];
String[] consumedClassList = libInstanceConsumes.get(consumer);
- if (consumedClassList == null) {
- continue;
- }
for (int l = 0; l < consumedClassList.length; ++l) {
if (consumedClassList[l].equals(className)) {
@@ -171,9 +168,6 @@ public class AutogenLibOrder { orderList.addFirst(n);
String[] consumedClassList = libInstanceConsumes.get(n);
- if (consumedClassList == null) {
- continue;
- }
for (int i = 0; i < consumedClassList.length; ++i) {
ModuleIdentification m = libClassProducer.get(consumedClassList[i]);
if (m == null) {
|