summaryrefslogtreecommitdiff
path: root/spellchecker/src/com/intellij/spellchecker/tokenizer/SpellcheckingStrategy.java
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2014-08-20 17:28:18 -0700
committerTor Norbye <tnorbye@google.com>2014-08-20 17:28:18 -0700
commitd76e3920c56d37c942092b7dca20fcaded81c0a5 (patch)
tree80a55c7b59c38377216daaada4e8bc47b69ceb9a /spellchecker/src/com/intellij/spellchecker/tokenizer/SpellcheckingStrategy.java
parent3b37877a2561bf9fbe072253a18688807d523505 (diff)
parent1aa2e09bdbd413eacb677e9fa4b50630530d0656 (diff)
downloadidea-d76e3920c56d37c942092b7dca20fcaded81c0a5.tar.gz
Merge remote-tracking branch 'aosp/upstream-master' into merge
Conflicts: .idea/modules.xml platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdatesXmlLoader.java Change-Id: Id899dae9a1e1c79272f8a70e14a7dcef4f760d7f
Diffstat (limited to 'spellchecker/src/com/intellij/spellchecker/tokenizer/SpellcheckingStrategy.java')
-rw-r--r--spellchecker/src/com/intellij/spellchecker/tokenizer/SpellcheckingStrategy.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/spellchecker/src/com/intellij/spellchecker/tokenizer/SpellcheckingStrategy.java b/spellchecker/src/com/intellij/spellchecker/tokenizer/SpellcheckingStrategy.java
index 95cd1e0f0f4c..6d28563e062c 100644
--- a/spellchecker/src/com/intellij/spellchecker/tokenizer/SpellcheckingStrategy.java
+++ b/spellchecker/src/com/intellij/spellchecker/tokenizer/SpellcheckingStrategy.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2000-2012 JetBrains s.r.o.
+ * Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -72,15 +72,11 @@ public class SpellcheckingStrategy {
public static SpellCheckerQuickFix[] getDefaultRegularFixes(boolean useRename, String wordWithTypo) {
return new SpellCheckerQuickFix[]{
- (useRename ? new RenameTo(wordWithTypo) : new ChangeTo(wordWithTypo)),
+ useRename ? new RenameTo(wordWithTypo) : new ChangeTo(wordWithTypo),
new AcceptWordAsCorrect(wordWithTypo)
};
}
- public SpellCheckerQuickFix[] getBatchFixes(PsiElement element, int offset, @NotNull TextRange textRange) {
- return getDefaultBatchFixes();
- }
-
public static SpellCheckerQuickFix[] getDefaultBatchFixes() {
return BATCH_FIXES;
}