Revision: 7392
http://languagetool.svn.sourceforge.net/languagetool/?rev=7392&view=rev
Author: milek_pl
Date: 2012-06-17 22:02:37 +0000 (Sun, 17 Jun 2012)
Log Message:
-----------
small fixes
Modified Paths:
--------------
trunk/JLanguageTool/src/java/org/languagetool/Main.java
Modified: trunk/JLanguageTool/src/java/org/languagetool/Main.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-06-17
21:54:02 UTC (rev 7391)
+++ trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-06-17
22:02:37 UTC (rev 7392)
@@ -483,12 +483,12 @@
// for language auto detect
// TODO: alter tika's language profiles so they are in line with LT's
supported languages
- private static Language detectLanguageOfFile(String filename, String
encoding) throws IOException {
+ private static Language detectLanguageOfFile(final String filename, final
String encoding) throws IOException {
final String text = StringTools.readFile(new FileInputStream(filename),
encoding);
return detectLanguageOfString(text);
}
- private static Language detectLanguageOfString(String text) {
+ private static Language detectLanguageOfString(final String text) {
final LanguageIdentifier identifier = new LanguageIdentifier(text);
final Language lang =
Language.getLanguageForShortName(identifier.getLanguage());
return lang;
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