[Java] Remove null checks for traits
authorMatt Corallo <git@bluematt.me>
Wed, 31 May 2023 19:32:42 +0000 (19:32 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 31 May 2023 19:32:42 +0000 (19:32 +0000)
commitdb6eff1491c8e2c78867e700172b83bc50c6c18f
treed0e5ba4f011a96ae88363b2237487dd4b5880400
parent925401bc0b3f6c3614357f059993cc8f8e686140
[Java] Remove null checks for traits

We have mapped optional traits via `Option_TraitZ` for quite some
time, so keeping null checks on all trait passes into LDK
unnecessarily converts `NullPointerException`s into SEGFAULTs.

Instead, simply remove them here.
gen_type_mapping.py