You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jk...@apache.org on 2014/03/22 03:47:22 UTC

svn commit: r1580131 - /opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/ModelUtil.java

Author: jkosin
Date: Sat Mar 22 02:47:22 2014
New Revision: 1580131

URL: http://svn.apache.org/r1580131
Log:
OPENNLP-669 Removed two @params, and added @throws and added to the function as a throw-ed error.

Modified:
    opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/ModelUtil.java

Modified: opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/ModelUtil.java
URL: http://svn.apache.org/viewvc/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/ModelUtil.java?rev=1580131&r1=1580130&r2=1580131&view=diff
==============================================================================
--- opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/ModelUtil.java (original)
+++ opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/ModelUtil.java Sat Mar 22 02:47:22 2014
@@ -52,9 +52,10 @@ public final class ModelUtil {
    * @param out the stream the model should be written to
    * 
    * @throws IOException
-   * @throws {@link IllegalArgumentException} in case one of the parameters is null
+   * @throws IllegalArgumentException in case one of the parameters is null
    */
-  public static void writeModel(MaxentModel model, final OutputStream out) throws IOException {
+  public static void writeModel(MaxentModel model, final OutputStream out) 
+          throws IOException, IllegalArgumentException {
     
     if (model == null)
       throw new IllegalArgumentException("model parameter must not be null!");
@@ -136,8 +137,6 @@ public final class ModelUtil {
    * 
    * Note: Do not use this method, internal use only!
    * 
-   * @param iterations number of iterations
-   * @param cutoff cutoff threshold
    * 
    * @return training parameters instance
    */