Throw AssertionError instead of RuntimeException
Many places in the code rethrow checked exceptions as runtime exceptions if the checked exception should never happen. Throw AssertionError instead, to make the behaviour more self-documenting.
Many places in the code rethrow checked exceptions as runtime exceptions if the checked exception should never happen. Throw AssertionError instead, to make the behaviour more self-documenting.