mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
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.