X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FMigrationTools%2Forg%2Ftianocore%2Fmigration%2FModuleInfo.java;h=49dde8b67a84e892822a4f022c2f8281a8941ea3;hp=3e4c4cbae2abb90736255a2bf46e6ed48c3b790d;hb=1eac75f911034feed279a69fbe6b84853682dca3;hpb=ac62aa9ad84cd1883967ca9026ac95378507cf95 diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java index 3e4c4cbae2..49dde8b67a 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java @@ -19,7 +19,7 @@ import java.util.*; Class ModuleInfo is built for scanning the source files, it contains all the needed information and all the temporary data. */ -public class ModuleInfo { +public final class ModuleInfo { ModuleInfo(String modulepath) throws Exception { this.modulepath = modulepath; @@ -43,21 +43,21 @@ public class ModuleInfo { public String moduletype = null; public String entrypoint = null; - public Set localmodulesources = new HashSet(); //contains both .c and .h - public Set preprocessedccodes = new HashSet(); - public Set msaorinf = new HashSet(); //only a little, hash may be too big for this + public final Set localmodulesources = new HashSet(); //contains both .c and .h + public final Set preprocessedccodes = new HashSet(); + public final Set msaorinf = new HashSet(); //only a little, hash may be too big for this - public Set hashfuncc = new HashSet(); - public Set hashfuncd = new HashSet(); - public Set hashnonlocalfunc = new HashSet(); - public Set hashnonlocalmacro = new HashSet(); - public Set hashEFIcall = new HashSet(); - public Set hashr8only = new HashSet(); + public final Set hashfuncc = new HashSet(); + public final Set hashfuncd = new HashSet(); + public final Set hashnonlocalfunc = new HashSet(); + public final Set hashnonlocalmacro = new HashSet(); + public final Set hashEFIcall = new HashSet(); + public final Set hashr8only = new HashSet(); - public Set hashrequiredr9libs = new HashSet(); // hashrequiredr9libs is now all added in SourceFileReplacer - public Set guid = new HashSet(); - public Set protocol = new HashSet(); - public Set ppi = new HashSet(); + public final Set hashrequiredr9libs = new HashSet(); // hashrequiredr9libs is now all added in SourceFileReplacer + public final Set guid = new HashSet(); + public final Set protocol = new HashSet(); + public final Set ppi = new HashSet(); public final void enroll(String filepath) throws Exception { String[] temp;