Files
floci/src/main/java/io
Priamo Germosen b38a2c8c3b refactor(rekognition): dedupe Geometry builder with Textract (#3794)
RekognitionService and TextractService each carried a byte-for-byte
identical buildGeometry/addPoint pair (BoundingBox plus 4-point
Polygon construction), found via CPD as a 26-line block (#3792).
Rekognition's own Javadoc already documented this as known,
intentional duplication: "the same shape Textract uses (Rekognition's
Geometry shape is structurally identical)".

Extracted it into AwsGeometry.buildGeometry in core.common, and
pointed both services at it.

No behavior change: the response shape is identical to both copies
before this, only its location changed. Both RekognitionIntegrationTest
and TextractIntegrationTest already assert directly on the Geometry/
BoundingBox/Polygon shape, so that path is covered.
2026-09-17 00:57:15 -05:00
..