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

   ## Summary
   - Migrate `.toArray()` → `.toArray(Character[]::new)` in 
`HdfsReaderTest.java` (4 occurrences)
   - Replace `assertArrayEquals(readData.toArray(), content.toArray())` with 
`assertEquals(readData, content)` in `HdfsReaderTest.java` (avoids generic 
array creation)
   - Migrate `.toArray()` → `.toArray(Integer[]::new)` in 
`CassandraSourceTest.java` (2 occurrences) and `CassandraFlowTest.java` (1 
occurrence)
   - Migrate `.toArray()` → `.toArray(Person[]::new)` in 
`CassandraFlowTest.java` (2 occurrences)
   
   Java 11 added `Collection.toArray(IntFunction<T[]>)` and 
`Stream.toArray(IntFunction<T[]>)` which produce type-safe arrays instead of 
`Object[]`.
   
   ## Test plan
   - [x] `sbt javafmtAll` — formatted
   - [x] Both `hdfs` and `cassandra` modules compile successfully
   - [ ] CI validates full test suite
   
   Part of the Java 17 modernization effort.


-- 
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