diff options
author | Cedric Beust <cedric@beust.com> | 2012-04-25 11:28:21 -0700 |
---|---|---|
committer | Cedric Beust <cedric@beust.com> | 2012-04-25 11:28:21 -0700 |
commit | e5bccc501142272a1fae64371e2ed307bc573815 (patch) | |
tree | afc5714d1e06ad79af2956e10994ba4f703147d4 /doc | |
parent | e26d6c92937e7d31145cf62c7a574ddad44d23bf (diff) | |
download | jcommander-e5bccc501142272a1fae64371e2ed307bc573815.tar.gz |
Fixed doc not to use Lists and Maps.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/index.html b/doc/index.html index b72706e..61728d5 100644 --- a/doc/index.html +++ b/doc/index.html @@ -57,7 +57,7 @@ import com.beust.jcommander.Parameter; public class JCommanderExample { @Parameter - private List<String> parameters = Lists.newArrayList(); + private List<String> parameters = new ArrayList<String>(); @Parameter(names = { "-log", "-verbose" }, description = "Level of verbosity") private Integer verbose = 1; @@ -684,7 +684,7 @@ JCommander allows you to specify parameters that are not known at compile time, <pre class="brush: java"> @DynamicParameter(names = "-D", description = "Dynamic parameters go here") -private Map<String, String> params = Maps.newHashMap(); +private Map<String, String> params = new HashMap<String, String>(); </pre> You can specify a different assignment string than <tt>=</tt> by using the attribute <tt>assignment</tt>. |