Skip to content

Releases: Hervian/safety-mirror

4.0.1

15 Sep 11:43
Compare
Choose a tag to compare

Add null checks to invoke-methods, hence the major release (Now NullPointerExceptions are thrown when passing a null argument, and the javadoc informs about this behavior).

Note that this was done to avoid an unexpected NPE that could otherwise occur when passing a null argument to a primitive param.
That is: One creates a Fun(ction) with one or more boxed primitive params, then one assigns a method whose signature matches, but instead of the boxed param the method uses primitives. Calling Fun.invoke with a null argument for the primitive will cause an NPE. To tackle this, null checks have been inserted to always throw NPE when passing one or more null args to the various invoke-methods, and the javadoc have been updated to inform users of the library of this behavior.

Functions, Delegates, Events and a new package structure

04 Sep 20:19
Compare
Choose a tag to compare

This release introduces functions, delegates and events.
It is a complete rewrite of the project and involves breaking changes in that classes have been renamed and the overall package structure changed.

First release

13 Nov 10:25
Compare
Choose a tag to compare

First release.
API: createMethod(MyClass::myMethod) and getName(MyClass::myMethod) which returns the method name (with certain limitations when it comes to synthetic methods).