ChainCallInplaceIntroducer: registry key removed (unconditional now)

This commit is contained in:
Tagir Valeev
2017-03-20 12:19:29 +07:00
parent 92920ba077
commit 189ba6eb30
2 changed files with 1 additions and 7 deletions
@@ -1259,8 +1259,6 @@ public abstract class IntroduceVariableBase extends IntroduceHandlerBase {
}
static class OccurrencesInfo {
static final boolean CHAIN_ALLOWED = Registry.is("java.extract.variable.chaining.method");
List<PsiExpression> myOccurrences;
List<PsiExpression> myNonWrite;
boolean myCantReplaceAll;
@@ -1284,7 +1282,7 @@ public abstract class IntroduceVariableBase extends IntroduceHandlerBase {
}
}
myHasWriteAccess = myOccurrences.size() > myNonWrite.size() && myOccurrences.size() > 1;
myChainMethodName = CHAIN_ALLOWED ? getChainCallExtractor() : null;
myChainMethodName = getChainCallExtractor();
}
private String getChainCallExtractor() {
@@ -1068,10 +1068,6 @@ JavaScript.WebPack.With.JsonSchema.description=Use JSON-Schema powered support f
ide.diagnostics.suggest.sending.all.attachments=false
ide.diagnostics.suggest.sending.all.attachments.description=Suggest the user to send all error attachments by default
java.extract.variable.chaining.method=true
java.extract.variable.chaining.method.description=Allows "Extract variable" to create separate call chain step
java.extract.variable.chaining.method.restartRequired=true
performance.watcher.unresponsive.interval.ms=5000
performance.watcher.unresponsive.interval.ms.description=Maximum time in ms for UI freezes. If UI thread freezes longer the thread dump will be logged