LUCENE-7360: Remove Explanation.toHtml()

This commit is contained in:
Alan Woodward 2016-06-29 09:16:13 +01:00
parent 23119db360
commit f3dcd467ff
3 changed files with 7 additions and 22 deletions

View File

@ -15,6 +15,8 @@ Other
* LUCENE-6968: LSH Filter (Tommaso Teofili, Andy Hind, Cao Manh Dat)
* LUCENE-7360: Remove Explanation.toHtml() (Alan Woodward)
======================= Lucene 6.2.0 =======================
New Features

View File

@ -14,3 +14,7 @@ yielding better compression ratios. In case you would still like to compress on
top of the codec, you can do it on the application side by using the utility
classes from the java.util.zip package.
## Explanation.toHtml() removed (LUCENE-7360)
Clients wishing to render Explanations as HTML should implement their own
utilities for this.

View File

@ -120,26 +120,5 @@ public final class Explanation {
return buffer.toString();
}
/** Render an explanation as HTML. */
@Deprecated
public String toHtml() {
StringBuilder buffer = new StringBuilder();
buffer.append("<ul>\n");
buffer.append("<li>");
buffer.append(getSummary());
buffer.append("<br />\n");
Explanation[] details = getDetails();
for (int i = 0 ; i < details.length; i++) {
buffer.append(details[i].toHtml());
}
buffer.append("</li>\n");
buffer.append("</ul>\n");
return buffer.toString();
}
}