Review and improve: fix typos, address code review findings, add missing tests, update README
...
- Renamed CustomTransmformation -> CustomTransformation (class, file, and test)
- Introduced io.ljunggren.transformer.exception.TransformerException and replaced
silent exception swallows in Transformer.findItems, Item.setValue, and
CustomTransformation.instantiateManipulation
- Build the transformation chain once in the Transformer constructor instead of
rebuilding it for every annotation on every field
- Filter out static and synthetic fields in Transformer.findObjectFields
- Removed dead ClassNotFoundException catch and overly broad throws Exception in
CustomTransformation; fixed misleading error messages ("CustomeTransformer",
"CustomValidator class not found")
- Item now also updates its in-memory value when setValue succeeds so chained
transformations see the latest value
- Minor cleanups: diamond operator, items.forEach instead of stream().forEach,
cast to String instead of toString() in transformation chain links, final
fields and @AllArgsConstructor on Item and DateFormatManipulation
- Test inner POJOs converted to private static classes
- Added tests: ItemTest, TransformationChainTest, instantiation-failure path in
CustomTransformationTest, multiple-annotation chain ordering, static-field
filtering, null-object Transformer, unannotated field, non-String fields for
date and base64 transformations, empty-string base64, unparseable date string
- README: corrected @DateFormat -> @TransformDateFormat and @ToBase64() ->
@TransformToBase64; documented TransformerException and the no-arg-constructor
requirement for @CustomTransformer values
- Test count: 12 -> 27, all passing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>