You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ko...@apache.org on 2012/03/12 15:16:12 UTC

svn commit: r1299677 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/Util.java

Author: koji
Date: Mon Mar 12 14:16:12 2012
New Revision: 1299677

URL: http://svn.apache.org/viewvc?rev=1299677&view=rev
Log:
fix javadoc: use Writer, Util.toDot() and prettify

Modified:
    lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/Util.java

Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/Util.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/Util.java?rev=1299677&r1=1299676&r2=1299677&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/Util.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/Util.java Mon Mar 12 14:16:12 2012
@@ -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: