Skip to content

Commit 1921237

Browse files
committed
updated HashMap.xml to remove 'c' before parameter info for constructor. Changed comments in ref writer. Need to add more fields to load in XMLWriter to handle constructor, possibly methods.
1 parent bd1edfc commit 1921237

3 files changed

Lines changed: 16 additions & 15 deletions

File tree

content/api_en/include/HashMap.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@ HashMap(<c>initialCapacity</c>, <c>loadFactor</c>)
4444
HashMap(<c>m</c>)
4545
</constructor>
4646

47-
<cparameter>
48-
<clabel>initialCapacity</clabel>
49-
<cdescription>int: defines the initial capacity of the map, it's 16 by default</cdescription>
50-
</cparameter>
51-
52-
<cparameter>
53-
<clabel>loadFactor</clabel>
54-
<cdescription>float: the load factor for the map, the default is 0.75</cdescription>
55-
</cparameter>
56-
57-
<cparameter>
58-
<clabel>m</clabel>
59-
<cdescription>Map: gives the new HashMap the same mappings as this Map</cdescription>
60-
</cparameter>
47+
<parameter>
48+
<label>initialCapacity</label>
49+
<description>int: defines the initial capacity of the map, it's 16 by default</description>
50+
</parameter>
51+
52+
<parameter>
53+
<label>loadFactor</label>
54+
<description>float: the load factor for the map, the default is 0.75</description>
55+
</parameter>
56+
57+
<parameter>
58+
<label>m</label>
59+
<description>Map: gives the new HashMap the same mappings as this Map</description>
60+
</parameter>
6161

6262
<returns></returns>
6363

Binary file not shown.

java_generate/ReferenceGenerator/src/writers/XMLReferenceWriter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private static void parseFile(File f, String dst, IndexWriter indexWriter)
8787
vars.put("description", description);
8888
vars.put("syntax", syntax);
8989
vars.put("usage", usage);
90-
vars.put("parameters", getParameters(doc)); //need to write this out in a loop
90+
vars.put("parameters", getParameters(doc));
9191
vars.put("related", getRelated(doc));
9292

9393
templateWriter.write("Generic.template.html", vars, anchor);
@@ -126,6 +126,7 @@ protected static String getParameters(Document doc) throws IOException{
126126
}
127127

128128
TemplateWriter templateWriter = new TemplateWriter();
129+
//write out all parameters with a short loop
129130
return templateWriter.writeLoop("Parameter.partial.html", ret);
130131
}
131132

0 commit comments

Comments
 (0)