Revision: 6219
http://languagetool.svn.sourceforge.net/languagetool/?rev=6219&view=rev
Author: archeus
Date: 2012-01-11 09:19:32 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
[fr] bugfix: do not use the shared unifier
Modified Paths:
--------------
trunk/JLanguageTool/src/java/org/languagetool/language/French.java
Modified: trunk/JLanguageTool/src/java/org/languagetool/language/French.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/language/French.java
2012-01-10 23:06:12 UTC (rev 6218)
+++ trunk/JLanguageTool/src/java/org/languagetool/language/French.java
2012-01-11 09:19:32 UTC (rev 6219)
@@ -33,7 +33,8 @@
private Tagger tagger;
private Disambiguator disambiguator;
- private static final Unifier FRENCH_UNIFIER = new Unifier();
+ private Unifier unifier;
+ private Unifier disambiguationUnifier;
@Override
public Locale getLocale() {
@@ -86,10 +87,21 @@
@Override
public Unifier getUnifier() {
- return FRENCH_UNIFIER;
+ if (unifier == null) {
+ unifier = new Unifier();
+ }
+ return unifier;
}
@Override
+ public Unifier getDisambiguationUnifier() {
+ if (disambiguationUnifier == null) {
+ disambiguationUnifier = new Unifier();
+ }
+ return disambiguationUnifier;
+ }
+
+ @Override
public Contributor[] getMaintainers() {
final Contributor hVoisard = new Contributor("Hugo Voisard");
hVoisard.setRemark("2006-2007");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs