From a1525c1a98d6b87bc409c09ea13d4e40ef5b6e49 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 16 Jul 2012 20:59:05 +0200 Subject: [PATCH] deprecation and javadoc for com.intellij.codeInsight.completion.impl.CamelHumpMatcher.forceStartMatching --- .../codeInsight/completion/impl/CamelHumpMatcher.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/completion/impl/CamelHumpMatcher.java b/platform/lang-impl/src/com/intellij/codeInsight/completion/impl/CamelHumpMatcher.java index aa1d75788fac..a7982fcb14d6 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/completion/impl/CamelHumpMatcher.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/completion/impl/CamelHumpMatcher.java @@ -93,7 +93,13 @@ public class CamelHumpMatcher extends PrefixMatcher { return myPrefix; } + /** + * In an ideal world, all tests would use the same settings as production, i.e. middle matching. + * If you see a usage of this method which can be easily removed (i.e. it's easy to make a test pass without it + * by modifying test expectations slightly), please do it + */ @TestOnly + @Deprecated public static void forceStartMatching(Disposable parent) { ourForceStartMatching = true; Disposer.register(parent, new Disposable() {