mirror of
https://github.com/apache/lucene.git
synced 2025-03-01 13:59:12 +00:00
LUCENE-7360: Remove Explanation.toHtml()
This commit is contained in:
parent
23119db360
commit
f3dcd467ff
@ -15,6 +15,8 @@ Other
|
|||||||
|
|
||||||
* LUCENE-6968: LSH Filter (Tommaso Teofili, Andy Hind, Cao Manh Dat)
|
* LUCENE-6968: LSH Filter (Tommaso Teofili, Andy Hind, Cao Manh Dat)
|
||||||
|
|
||||||
|
* LUCENE-7360: Remove Explanation.toHtml() (Alan Woodward)
|
||||||
|
|
||||||
======================= Lucene 6.2.0 =======================
|
======================= Lucene 6.2.0 =======================
|
||||||
|
|
||||||
New Features
|
New Features
|
||||||
|
@ -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
|
top of the codec, you can do it on the application side by using the utility
|
||||||
classes from the java.util.zip package.
|
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.
|
||||||
|
@ -121,25 +121,4 @@ public final class Explanation {
|
|||||||
return buffer.toString();
|
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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user