8139484: [Findbugs] new sun.jvm.hotspot.SAGetopt(String[]) may expose internal representation
Clone array instead of just assign it Reviewed-by: dholmes
This commit is contained in:
parent
e62c706965
commit
d7bb6e9a97
@ -37,7 +37,7 @@ public class SAGetopt {
|
||||
private boolean _optreset; // special handling of first call
|
||||
|
||||
public SAGetopt(String[] args) {
|
||||
_argv = args;
|
||||
_argv = args.clone();
|
||||
_optind = 0;
|
||||
_optopt = 1;
|
||||
_optarg = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user