You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The namespace has been moved from com.markozajc.akiwrapper to com.github.markozajc.akiwrapper to unify it with the group and artifact IDs,
Akiwrapper#answerCurrentQuestion has been deprecated and renamed to Akiwrapper#answer,
Akiwrapper#getCurrentQuestion has been deprecated and renamed to Akiwrapper#getQuestion,
Question#getGain has been deprecated and renamed to Question#getInfogain.
Additions
It is now possible to make Akiwrapper use a custom Unirest instance through AkiwrapperBuilder#setUnirestInstance. By default, UnirestUtils.getInstance is used, and it is now pointer multiple times in the javadocs that the singleton/custom provided instance need to be closed after they're no longer needed in order to prevent memory leakage.
Other changes
spotbugs-annotations and jsr305 are now optional dependencies - they will not be inherited when you depend on Maven, as they're not needed during runtime and making dependents inherit them by default makes little sense,
The example project has been cleaned up, and its pom.xml has been updated to allow it to compile properly.
Internal changes
AkiwrapperMetadata and MutableAkiwrapperMetadata have been removed since it makes no sense to keep them around with changes to how AkiwrapperImpl is constructed. Their methods and constants have been moved into AkiwrapperBuilder,
Internal methods that make HTTP requests now take UnirestInstance as a parameter, as it is no longer a static constant,
Route#getRequest has been deprecated and renamed to Route#createRequest,
Route#getParametersQuantity has been deprecated and renamed to Route#getParameterCount,
JSONUtils now uses primitive Optional types rather than boxed ones.