When bootstrapping a switch expression via SwitchBootstraps we unconditionally load and create a map of TypePairs.
- This map construction means the hashCode and equals methods will be generated. Implementing them explicitly avoids this added early code gen when loading SwitchBootstraps.
- The TypePairs map is not needed by some bootstraps; moving the static HashMap into TypePairs avoids loading TypePairs altogether in some cases.
- This map construction means the hashCode and equals methods will be generated. Implementing them explicitly avoids this added early code gen when loading SwitchBootstraps.
- The TypePairs map is not needed by some bootstraps; moving the static HashMap into TypePairs avoids loading TypePairs altogether in some cases.