Bug: Connection-Leak in SqliteUnitOfWorkAdapter (R3-04) #61
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Befund R3-04 – BLOCKER
Datei:
SqliteUnitOfWorkAdapter.java:44-46Problem
Connection wird vor try-Block angelegt und im finally manuell geschlossen. Verbindungsleck moeglich, wenn
setAutoCommit(false)eine Exception wirft.Empfehlung
try-with-resources fuer die Connection verwenden.