Author: joern
Date: Wed May 20 10:02:20 2015
New Revision: 1680509

URL: http://svn.apache.org/r1680509
Log:
No jira, removed main. Contained some debug code which really shouldn't be there

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

Modified: 
opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java
URL: 
http://svn.apache.org/viewvc/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java?rev=1680509&r1=1680508&r2=1680509&view=diff
==============================================================================
--- 
opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java
 (original)
+++ 
opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/util/model/BaseModel.java
 Wed May 20 10:02:20 2015
@@ -642,27 +642,4 @@ public abstract class BaseModel implemen
   public boolean isLoadedFromSerialized() {
     return isLoadedFromSerialized;
   }
-
-  public static void main(String[] args) throws Exception {
-
-    // create a stream which can be reset, enclose it in a buffered stream 
which supports reseting
-    InputStream in = new FileInputStream("annotation.conf");
-
-    System.out.println("Is mark supported: " + in.markSupported());
-
-    in = new BufferedInputStream(in);
-
-    System.out.println("Is mark supported: " + in.markSupported());
-
-    // 2 GB limit
-    in.mark(4096);
-
-    in.read();
-
-    in.reset();
-
-    // the mark support can be used to test if reseting is supported, we 
shoudl use this test anyway
-    // to fail gracefully in the cross validators ...
-
-  }
 }


Reply via email to