Move registry key to Java plugin (IJ-CR-137130)

GitOrigin-RevId: eb6da35f1760cc93aebed16c46bdc48f08e97353
This commit is contained in:
Bas Leijdekkers
2024-06-24 18:07:58 +02:00
committed by intellij-monorepo-bot
parent a21e97104d
commit 2fce834c88
3 changed files with 3 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ public final class LocalRefUseInfo {
if (isDeadCodeEnabled && !inLibrary) {
return new GlobalUsageHelperBase() {
final Map<PsiMember, Boolean> myEntryPointCache = FactoryMap.create((PsiMember member) -> {
if (Registry.is("ide.unused.symbol.strict.entry.points") ? deadCodeInspection.isStrictEntryPoint(member) : deadCodeInspection.isEntryPoint(member)) return true;
if (Registry.is("java.unused.symbol.strict.entry.points") ? deadCodeInspection.isStrictEntryPoint(member) : deadCodeInspection.isEntryPoint(member)) return true;
if (member instanceof PsiClass) {
return !JBTreeTraverser
.<PsiMember>from(m -> m instanceof PsiClass

View File

@@ -2318,6 +2318,8 @@
presentation="com.intellij.codeInspection.deadCode.UnusedDeclarationPresentation" key="inspection.unused.display.name"
editorAttributes="NOT_USED_ELEMENT_ATTRIBUTES"
bundle="messages.JavaBundle"/>
<registryKey key="java.unused.symbol.strict.entry.points" defaultValue="true"
description="Do not consider implicit usages part of the entry points (editor only)"/>
<registryKey defaultValue="false"
description="Use shallow unused declaration analysis in batch mode (like in the editor, Java only)"
key="java.unused.declaration.inspection.use.shallow.local.anaysis.as.global"/>

View File

@@ -478,8 +478,6 @@ ide.unused.symbol.calculation.maxFilesToSearchUsagesIn=10
ide.unused.symbol.calculation.maxFilesToSearchUsagesIn.description=Max number of scanned files to find usages of symbol
ide.unused.symbol.calculation.maxFilesSizeToSearchUsagesIn=524288
ide.unused.symbol.calculation.maxFilesSizeToSearchUsagesIn.description=Max files size in bytes to find usages of symbol in case there are a few files
ide.unused.symbol.strict.entry.points=true
ide.unused.symbol.strict.entry.points.description=Do not consider implicit usages part of the entry points (editor only)
ide.tabbedPane.dragOutMultiplier=0.1
ide.tabbedPane.dragOutMultiplier.description=A threshold to define if editor tab drag&drop is intentional (ratio of tab size)