slachiewicz opened a new pull request, #400:
URL: https://github.com/apache/maven-jxr/pull/400

   `DirectoryScanner.addDefaultExcludes()` grew an array by hand with `new 
String[]` plus `System.arraycopy`; `Arrays.copyOf` expresses the same operation 
in one line.
   
   - Replaced the manual array allocation/copy/assignment with `excludes = 
Arrays.copyOf(excludes, excludesLength + 1);` followed by the existing append.
   - Added the `java.util.Arrays` import.
   - Behavior is unchanged, including the `excludes == null` case 
(`Arrays.copyOf(null, 1)` produces a one-element array).
   
   Tracking: #14072
   
   Verified: `JAVA_HOME=21 mvn -B -o verify -pl maven-jxr` → BUILD SUCCESS; 16 
tests, 0 failures/errors.
   


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