Revision: 8610
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=8610&view=rev
Author:   dnaber
Date:     2012-12-21 09:59:52 +0000 (Fri, 21 Dec 2012)
Log Message:
-----------
tiny code cleanup

Modified Paths:
--------------
    
trunk/JLanguageTool/src/main/java/org/languagetool/rules/WrongWordInContextRule.java
    
trunk/JLanguageTool/src/main/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java

Modified: 
trunk/JLanguageTool/src/main/java/org/languagetool/rules/WrongWordInContextRule.java
===================================================================
--- 
trunk/JLanguageTool/src/main/java/org/languagetool/rules/WrongWordInContextRule.java
        2012-12-21 04:35:14 UTC (rev 8609)
+++ 
trunk/JLanguageTool/src/main/java/org/languagetool/rules/WrongWordInContextRule.java
        2012-12-21 09:59:52 UTC (rev 8610)
@@ -207,8 +207,8 @@
   
   class ContextWords {
     
-    public String matches[] = {"", ""}, explanations[] = {"", ""};
-    public Pattern words[], contexts[];
+    String matches[] = {"", ""}, explanations[] = {"", ""};
+    Pattern words[], contexts[];
     
     ContextWords() {
       words = new Pattern[2];
@@ -216,7 +216,7 @@
     }
     
     private String addBoundaries(String str) {
-      String ignore_case="";
+      String ignore_case = "";
       if (str.startsWith("(?i)")) {
         str = str.substring(4);
         ignore_case = "(?i)";

Modified: 
trunk/JLanguageTool/src/main/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
===================================================================
--- 
trunk/JLanguageTool/src/main/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
        2012-12-21 04:35:14 UTC (rev 8609)
+++ 
trunk/JLanguageTool/src/main/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
        2012-12-21 09:59:52 UTC (rev 8610)
@@ -167,8 +167,7 @@
                                    final String originalPath) throws 
IOException {
 
     final URL dictURL = 
JLanguageTool.getDataBroker().getFromResourceDirAsUrl(originalPath);
-    String dictionaryPath = dictURL.getPath();
-
+    String dictionaryPath;
     //in the webstart version, we need to copy the files outside the jar
     //to the local temporary directory
     if ("jar".equals(dictURL.getProtocol())) {

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


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to