Revision: 7448
http://languagetool.svn.sourceforge.net/languagetool/?rev=7448&view=rev
Author: dnaber
Date: 2012-06-21 20:44:04 +0000 (Thu, 21 Jun 2012)
Log Message:
-----------
small code cleanup (adding final)
Modified Paths:
--------------
trunk/JLanguageTool/src/java/org/languagetool/rules/IncorrectExample.java
Modified:
trunk/JLanguageTool/src/java/org/languagetool/rules/IncorrectExample.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/rules/IncorrectExample.java
2012-06-21 20:08:30 UTC (rev 7447)
+++ trunk/JLanguageTool/src/java/org/languagetool/rules/IncorrectExample.java
2012-06-21 20:44:04 UTC (rev 7448)
@@ -19,6 +19,7 @@
package org.languagetool.rules;
import java.util.Arrays;
+import java.util.Collections;
import java.util.List;
/**
@@ -29,15 +30,16 @@
*/
public class IncorrectExample {
- private String example;
- private List<String> corrections;
+ private final String example;
+ private final List<String> corrections;
public IncorrectExample(final String example) {
this.example = example;
+ this.corrections = Collections.emptyList();
}
public IncorrectExample(final String example, final String[] corrections) {
- this(example);
+ this.example = example;
this.corrections = Arrays.asList(corrections);
}
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