DKPro JWPL (DKPro Java Wikipedia Library) is a free, Java-based application programming interface that facilitates access to all information in Wikipedia.
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.
Describe the refactoring action Some classes accessing db backends use a bloating, old of handling
java.sql
resources by invokingclose()
manually. However, there is try-with-resources nowadays.In particular, boilerplate code is found in
WikipediaTemplateInfo
andRevisionApi
.Expected benefit Modernize handling of java.sql resources towards try-with-resources, thus reducing boilerplate code.