shorter method chains weight in the logs

This commit is contained in:
peter
2013-07-22 11:32:14 +02:00
parent 9a414cb168
commit 9e3c61cf55
2 changed files with 9 additions and 1 deletions
@@ -80,4 +80,12 @@ public class ChainRelevance implements Comparable<ChainRelevance> {
if (sub != 0) return -sub;
return 0;
}
@Override
public String toString() {
return (myFirstMethodStatic ? "1" : "0") +
(myHasCallingVariableInContext ? "1" : "0") + "_" +
myLastMethodOccurrences + "_" +
myUnreachableParametersCount;
}
}
+1 -1
View File
@@ -1441,7 +1441,7 @@
<java.compilerOutputIndex implementation="com.intellij.compilerOutputIndex.impl.callingLocation.MethodCallingLocationIndex"/>
<completion.contributor language="JAVA" id="methodsChainsCompletionContributor" order="first"
implementationClass="com.intellij.codeInsight.completion.methodChains.completion.MethodsChainsCompletionContributor"/>
<weigher order="first" key="completion" id="methodsChainsCompletionContributor"
<weigher order="first" key="completion" id="methodsChains"
implementationClass="com.intellij.codeInsight.completion.methodChains.completion.MethodsChainsWeigher"/>
<applicationService serviceInterface="org.jetbrains.generate.tostring.template.TemplatesManager"