Revision: 6131
http://languagetool.svn.sourceforge.net/languagetool/?rev=6131&view=rev
Author: dnaber
Date: 2012-01-01 11:58:53 +0000 (Sun, 01 Jan 2012)
Log Message:
-----------
re-indent a bit
Modified Paths:
--------------
trunk/JLanguageTool/src/java/org/languagetool/tagging/disambiguation/rules/DisambiguationPatternRule.java
Modified:
trunk/JLanguageTool/src/java/org/languagetool/tagging/disambiguation/rules/DisambiguationPatternRule.java
===================================================================
---
trunk/JLanguageTool/src/java/org/languagetool/tagging/disambiguation/rules/DisambiguationPatternRule.java
2012-01-01 11:50:00 UTC (rev 6130)
+++
trunk/JLanguageTool/src/java/org/languagetool/tagging/disambiguation/rules/DisambiguationPatternRule.java
2012-01-01 11:58:53 UTC (rev 6131)
@@ -82,9 +82,7 @@
* @param disambAction
* - the action to be executed on found token(s), one of the
* following: add, filter, remove, replace, unify.
- *
*/
-
DisambiguationPatternRule(final String id, final String description,
final Language language, final List<Element> elements,
final String disamb, final Match posSelect,
@@ -216,8 +214,7 @@
l--;
}
}
- final int fromPos = text.getOriginalPosition(firstMatchToken
- + correctedStPos);
+ final int fromPos = text.getOriginalPosition(firstMatchToken +
correctedStPos);
final int numRead = whTokens[fromPos].getReadingsLength();
final boolean spaceBefore = whTokens[fromPos].isWhitespaceBefore();
boolean filtered = false;
@@ -276,10 +273,8 @@
}
break;
case IMMUNIZE:
- for (int i = 0; i < matchingTokens - startPositionCorrection
- + endPositionCorrection; i++) {
- whTokens[text.getOriginalPosition(firstMatchToken + correctedStPos
- + i)].immunize();
+ for (int i = 0; i < matchingTokens - startPositionCorrection +
endPositionCorrection; i++) {
+ whTokens[text.getOriginalPosition(firstMatchToken + correctedStPos +
i)].immunize();
}
case FILTER:
if (matchElement == null) { // same as REPLACE if using <match>
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