dkpro / dkpro-jwpl

DKPro JWPL (DKPro Java Wikipedia Library) is a free, Java-based application programming interface that facilitates access to all information in Wikipedia.
https://dkpro.github.io/dkpro-jwpl
Apache License 2.0
82 stars 34 forks source link

Modernize handling of java.sql resources towards try-with-resources #269

Closed mawiesne closed 11 months ago

mawiesne commented 11 months ago

Describe the refactoring action Some classes accessing db backends use a bloating, old of handling java.sql resources by invoking close() manually. However, there is try-with-resources nowadays.

In particular, boilerplate code is found in WikipediaTemplateInfo and RevisionApi.

Expected benefit Modernize handling of java.sql resources towards try-with-resources, thus reducing boilerplate code.