Version - [1.0.3]
Changed
-
SDK version bump:
1.0.2→1.0.3.
A maintenance release focused on static-analysis (SonarQube) cleanup. It
contains no functional or behavioral changes and is source-compatible with
1.0.2for normal SDK usage (see Compatibility for one constructor
visibility change). Theversionproperty, theSDK_VERSIONruntime
constant, and the installation documentation now report1.0.3. -
Static-analysis cleanup (non-behavioral). Resolved a set of SonarQube
findings across the SDK utilities, operations, and models. The thrown
conditions, serialization flow, and matched content types are unchanged:- Replaced regular-expression media-type detection in
RequestBodywith
equivalent linear-timeStringcomparisons, removing the super-linear
backtracking risk. - Reduced the cognitive complexity of
RequestBody.serializeContentType(...)
by extracting its JSON and raw-value branches into helper methods. - Replaced generic
RuntimeExceptionthrows in the serialization path with
specificIllegalStateExceptionandIllegalArgumentExceptiontypes. - Removed
@Nullablefrom theFastpixException.withBody(...)parameter to
match its existing non-null runtime contract. - Narrowed the
FastpixException(String, int, byte[], HttpResponse, Throwable)
constructor frompublictoprotected(see Compatibility). - Applied idiomatic and structural cleanups:
!isEmpty()oversize() > 0,
method references over equivalent lambdas,ifexpressions over
single-branchswitchstatements, and removal of unused members,
redundant constructors, and duplicated string literals.
- Replaced regular-expression media-type detection in
Compatibility
- No changes to public method signatures, request/response models, default
server URLs, hooks, or retry logic. - One source-level change: the
FastpixExceptionall-args constructor is
nowprotectedinstead ofpublic. Throwing, catching, and reading
FastpixExceptionare unaffected; this only impacts code that constructed
FastpixExceptiondirectly from outside the package — an unsupported usage. - No action required to upgrade beyond re-resolving the dependency.