He-Pin opened a new pull request, #1118:
URL: https://github.com/apache/pekko-http/pull/1118

   ### Motivation
   Several Java source files in pekko-http produce compilation warnings during 
`sbt compile`:
   
   | File | Module | Warning Type |
   |---|---|---|
   | `ContentTypes.java` | http-core | deprecated API usage |
   | `AttributeKeys.java` | http-core | unchecked casts |
   | `Coder.java` | http | deprecated internal API usage |
   | `Jackson.java` | http-jackson | deprecated API usage |
   | `ParserSettingsTest.java` | http-core (test) | deprecated API usage |
   
   ### Modification
   - Add `@SuppressWarnings("deprecation")` to `ContentTypes`, `Coder`, 
`Jackson` and `ParserSettingsTest`
   - Add `@SuppressWarnings("unchecked")` to `AttributeKeys`
   
   All suppressions are on code that intentionally uses these APIs for Java 
interoperability with the Scala layer.
   
   ### Result
   Java compilation no longer reports warnings for these files. Changes are 
annotation-only and cannot affect runtime behavior.
   
   ### Tests
   Not run - full pekko-http clean compile requires `h2spec_darwin_amd64` 
dependency unavailable on macOS ARM64. The changes are annotation-only and 
cannot affect runtime behavior.
   
   ### References
   None - cleanup


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to