This commit is contained in:
Rsl1122 2017-10-07 19:54:54 +03:00
parent 82869f0ec1
commit 0ca5be7e89

View File

@ -71,12 +71,10 @@ public enum Html {
* @return The parsed HTML String
*/
public String parse(Serializable... p) {
Verify.nullCheck(p);
Map<String, Serializable> replaceMap = new HashMap<>();
for (int i = 0; i < p.length; i++) {
replaceMap.put(String.valueOf(i), p[i].toString());
replaceMap.put(String.valueOf(i), p[i]);
}
StrSubstitutor sub = new StrSubstitutor(replaceMap);