Skip to content

Apache Lucene open-source search software

fix javadoc: use Writer, Util.toDot() and prettify

Koji Sekiguchi3710c95e9674
diff --git a/lucene/core/src/java/org/apache/lucene/util/fst/Util.java b/lucene/core/src/java/org/apache/lucene/util/fst/Util.java
index 4f37e447c7d..e92e9b715f6 100644
--- a/lucene/core/src/java/org/apache/lucene/util/fst/Util.java
+++ b/lucene/core/src/java/org/apache/lucene/util/fst/Util.java
@@ -532,10 +532,10 @@ public final class Util {
* Dumps an {@link FST} to a GraphViz's <code>dot</code> language description
* for visualization. Example of use:
*
- * <pre>
- * PrintStream ps = new PrintStream(&quot;out.dot&quot;);
- * fst.toDot(ps);
- * ps.close();
+ * <pre class="prettyprint">
+ * PrintWriter pw = new PrintWriter(&quot;out.dot&quot;);
+ * Util.toDot(fst, pw, true, true);
+ * pw.close();
* </pre>
*
* and then, from command line: