Skip to content

0.2.0

Compare
Choose a tag to compare
@arcticicestudio arcticicestudio released this 16 Oct 21:57
· 98 commits to develop since this release
v0.2.0


Features

API

  • Implemented public API Builder methods:
Class Constructor Description
com.arcticicestudio.icecore.hashids.Hashids + getVersion(String):Builder Returns the ArcVer / SemVer version of the public API.

Improvements

API

  • Now using StringBuilder class for non-constant String attributes to avoid unnecessary String primitive-wrapping

  • No more boxing of primitive for String conversion only
    Make use of the static JDK method + String.valueOf(char):String to avoid waste of memory and cycles by not using a primitive-wrapper with concatenating empty string "" to a primitive.
    This change fulfills the Eclipse SonarQube rule squid:S2131:

    Primitives should not be boxed just for String conversion

  • Changed private methods without access to instance data to be static
    Clarifies that these methods will not modify the state of the object.
    This change fulfills the Eclipse SonarQube rule squid:S2325:

    Private methods that don't access instance data should be static

  • Pre-compile regex Pattern pattern
    Improves the performance (less memory and CPU cycles) by using pre-compiled regex pattern instead of creating instances for each Pattern call.


The full changelog ist available here