Revision: 7518
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7518&view=rev
Author:   dnaber
Date:     2012-06-26 16:36:44 +0000 (Tue, 26 Jun 2012)
Log Message:
-----------
undo yesterday's workaround, as Marcin writes: "I think the main reason was 
that in 1.7 a disambiguation rule might exist that removed the only reading of 
the token. At the same time, it  had to preserve settings such as "is a 
paragraph end", hence, the  exception. It should be fixed already."

Modified Paths:
--------------
    trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java    
2012-06-26 13:09:12 UTC (rev 7517)
+++ trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java    
2012-06-26 16:36:44 UTC (rev 7518)
@@ -258,14 +258,8 @@
    */
   public void setParaEnd() {
     if (!isParaEnd()) {
-      final AnalyzedToken paragraphEnd;
-      if (anTokReadings.length == 0) {
-        // workaround for ArraysOutOfBounds (bug #3537500) until the real 
reason is found:
-        paragraphEnd = new AnalyzedToken(getToken(), 
JLanguageTool.PARAGRAPH_END_TAGNAME, null);
-      } else {
-        paragraphEnd = new AnalyzedToken(getToken(),
-                JLanguageTool.PARAGRAPH_END_TAGNAME, 
getAnalyzedToken(0).getLemma());
-      }
+      final AnalyzedToken paragraphEnd = new AnalyzedToken(getToken(),
+          JLanguageTool.PARAGRAPH_END_TAGNAME, getAnalyzedToken(0).getLemma());
       addReading(paragraphEnd);
     }
   }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to