Revision: 7178
http://languagetool.svn.sourceforge.net/languagetool/?rev=7178&view=rev
Author: milek_pl
Date: 2012-06-02 18:31:56 +0000 (Sat, 02 Jun 2012)
Log Message:
-----------
and one more fix in a similar situation
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-02 18:28:49 UTC (rev 7177)
+++ trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java
2012-06-02 18:31:56 UTC (rev 7178)
@@ -183,7 +183,7 @@
}
/**
- * Removes all the readings but the one that match the token token.
+ * Removes all the readings but the one that match the token given.
* @since 1.5
* @param token Token to be matched
*/
@@ -197,6 +197,9 @@
l.add(anTokReading);
}
}
+ if (l.isEmpty()) {
+ l.add(new AnalyzedToken(token.getToken(), null, null));
+ }
anTokReadings = l.toArray(new AnalyzedToken[l.size()]);
setNoRealPOStag();
}
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