Bug Fixes
- Fixed
JavaPackage.getPackageDependenciesFromSelf()
containing the package itself if there was a dependency in the same package but not directly imported (e.g.importer.importClasses(Foo.class)
wheresome.pkg.Foo
would depend onsome.pkg.Bar
, which was not imported)
Enhancements
Core
- Some methods now return
Collection
types instead ofIterable
to integrate nicer with streams
Lang
FieldsShould
now contains the negationnotHaveRawTypes
(see #162; thanks a lot to @asbachb)CodeUnitsShould
now contains the negationsnotHaveRawParameterTypes
,notHaveRawReturnType
andnotDeclareThrowableOfType
- The syntax now contains
{methods,fields}().should().{be,notBe}{Static,Final}
(see #164; thanks a lot to @hankem)
Library
Slice
now also offersdependenciesToSelf
additionally todependenciesFromSelf
Further Acknowledgement
- Thanks a lot to @hankem for reviewing and improving the user guide