jdbi/jdbi

investigate making more classes final

Aperta

#2515 aperta il 19 ott 2023

 (1 commento) (0 reazioni) (0 assegnatari)Java (324 fork)batch import
help wantedimprovementinvestigation needed

Metriche repository

Star
 (1745 stelle)
Metriche merge PR
 (Merge medio 1g 10h) (6 PR mergiate in 30 g)

Descrizione

spotbugs added https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html#ct-constructor-throw, which is an unlikely attack vector that can be mitigated by making classes final.

With bytecode mocking on the way out anyway and mocking as one of the few use cases to extend some of the base classes, we could investigate making more classes (e.g. Handle) final.

Guida contributor