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>
1 parent d1fa7fa commit 0df9033676c479157801b72adeb259415c677067
@Your Name Your Name authored on 8 May
Showing 18 changed files
View
README.md
View
TODO.md 0 → 100644
View
src/main/java/io/ljunggren/transformer/Item.java
View
src/main/java/io/ljunggren/transformer/Transformer.java
View
src/main/java/io/ljunggren/transformer/exception/TransformerException.java 0 → 100755
View
src/main/java/io/ljunggren/transformer/manipulation/DateFormatManipulation.java
View
src/main/java/io/ljunggren/transformer/transformation/CustomTransformation.java 0 → 100644
View
src/main/java/io/ljunggren/transformer/transformation/CustomTransmformation.java 100644 → 0
View
src/main/java/io/ljunggren/transformer/transformation/DateFormatTransformation.java
View
src/main/java/io/ljunggren/transformer/transformation/ToBase64Transformation.java
View
src/test/java/io/ljunggren/transformer/ItemTest.java 0 → 100755
View
src/test/java/io/ljunggren/transformer/TransformerTest.java
View
src/test/java/io/ljunggren/transformer/transformation/CatchAllTransformationTest.java
View
src/test/java/io/ljunggren/transformer/transformation/CustomTransformationTest.java 0 → 100644
View
src/test/java/io/ljunggren/transformer/transformation/CustomTransmformationTest.java 100644 → 0
View
src/test/java/io/ljunggren/transformer/transformation/DateFormatTransformationTest.java
View
src/test/java/io/ljunggren/transformer/transformation/ToBase64TransformationTest.java
View
src/test/java/io/ljunggren/transformer/transformation/TransformationChainTest.java 0 → 100755