yyqdbngt opened a new pull request, #2830:
URL: https://github.com/apache/rocketmq-dashboard/pull/2830

   ## Summary
   - copy page items when constructing a `PageResult`
   - expose an unmodifiable page list without changing null-element behavior
   - add regression coverage for source-list and caller mutation
   
   ## Why
   `PageResult` retained the caller's mutable list (including `subList` views), 
so later source mutations could change an already returned page and callers 
could mutate shared backing state.
   
   ## Testing
   - `JAVA_HOME=/opt/homebrew/opt/openjdk@21 mvn -f server/pom.xml 
-Dtest=PageResultTest test`
   


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

Reply via email to