summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCedric Beust <cedric@beust.com>2012-04-25 11:28:21 -0700
committerCedric Beust <cedric@beust.com>2012-04-25 11:28:21 -0700
commite5bccc501142272a1fae64371e2ed307bc573815 (patch)
treeafc5714d1e06ad79af2956e10994ba4f703147d4 /doc
parente26d6c92937e7d31145cf62c7a574ddad44d23bf (diff)
downloadjcommander-e5bccc501142272a1fae64371e2ed307bc573815.tar.gz
Fixed doc not to use Lists and Maps.
Diffstat (limited to 'doc')
-rw-r--r--doc/index.html4
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&lt;String&gt; parameters = Lists.newArrayList();
+ private List&lt;String&gt; parameters = new ArrayList&lt;String&gt;();
@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&lt;String, String&gt; params = Maps.newHashMap();
+private Map&lt;String, String&gt; params = new HashMap&lt;String, String&gt;();
</pre>
You can specify a different assignment string than <tt>=</tt> by using the attribute <tt>assignment</tt>.