Add final modifier for private member of MasterInfo class

Add final modifier for private member of MasterInfo to reduce mutability and unfortunate assignment.
This helps to do compile time check for member variables that not need to be changed or assigned to different instance/ reference.

And small code change to remove unused empty else code when checking for dependency.