Skip to content

v1.5.2

Compare
Choose a tag to compare
@markozajc markozajc released this 07 Jul 21:00
· 87 commits to master since this release
b9831b7

Breaking changes

  • 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.