mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-05 21:50:20 +00:00
8162702: com.sun.management.internal.GcInfoBuilder.getPoolNames should not return reference of it's private member
Return clone of array Reviewed-by: dholmes, hb, dsamersoff
This commit is contained in:
parent
496e48d0fb
commit
c4dce28e8e
@ -79,7 +79,7 @@ public class GcInfoBuilder {
|
||||
}
|
||||
|
||||
public String[] getPoolNames() {
|
||||
return poolNames;
|
||||
return poolNames.clone();
|
||||
}
|
||||
|
||||
int getGcExtItemCount() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user