mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix nullability - setName expects not-null string
GitOrigin-RevId: 880dc9aa1238e789557c24429e1d1856913ddda4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a1adaa2080
commit
01ae4b5827
@@ -16551,7 +16551,6 @@ c:com.intellij.tools.ToolEditorDialog
|
||||
f:com.intellij.tools.ToolManager
|
||||
- com.intellij.tools.BaseToolManager
|
||||
- <init>():V
|
||||
- s:getInstance():com.intellij.tools.ToolManager
|
||||
f:com.intellij.tools.ToolProcessAdapter
|
||||
- com.intellij.execution.process.ProcessAdapter
|
||||
- <init>(com.intellij.openapi.project.Project,Z,java.lang.String):V
|
||||
|
||||
@@ -1009,6 +1009,11 @@ com.intellij.slicer.SliceLanguageSupportProvider
|
||||
- a:startAnalyzeLeafValues(com.intellij.ide.util.treeView.AbstractTreeStructure,java.lang.Runnable):V
|
||||
- a:startAnalyzeNullness(com.intellij.ide.util.treeView.AbstractTreeStructure,java.lang.Runnable):V
|
||||
- supportValueFilters(com.intellij.psi.PsiElement):Z
|
||||
f:com.intellij.tools.ToolManager
|
||||
- sf:Companion:com.intellij.tools.ToolManager$Companion
|
||||
- sf:getInstance():com.intellij.tools.ToolManager
|
||||
f:com.intellij.tools.ToolManager$Companion
|
||||
- f:getInstance():com.intellij.tools.ToolManager
|
||||
com.intellij.unscramble.AnalyzeStacktraceUtil$ConsoleFactory
|
||||
- a:createConsoleComponent(com.intellij.execution.ui.ConsoleView,com.intellij.openapi.actionSystem.DefaultActionGroup):javax.swing.JComponent
|
||||
com.intellij.util.indexing.UnindexedFilesUpdaterListener
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.openapi.options;
|
||||
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
@@ -16,7 +16,7 @@ public class CompoundScheme<E extends SchemeElement> implements ExternalizableSc
|
||||
protected String myName;
|
||||
protected final ArrayList<E> myElements = new ArrayList<>();
|
||||
|
||||
public CompoundScheme(final String name) {
|
||||
public CompoundScheme(@NotNull String name) {
|
||||
setName(name);
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public class CompoundScheme<E extends SchemeElement> implements ExternalizableSc
|
||||
}
|
||||
|
||||
@Override
|
||||
public final void setName(final @NotNull String name) {
|
||||
public final void setName(@NotNull String name) {
|
||||
myName = name;
|
||||
for (E template : myElements) {
|
||||
template.setGroupName(name);
|
||||
|
||||
@@ -9,6 +9,7 @@ import com.intellij.openapi.components.service
|
||||
import com.intellij.openapi.options.SchemeManagerFactory
|
||||
import com.intellij.openapi.options.SchemeProcessor
|
||||
import com.intellij.tools.ToolManager.Companion.getInstance
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
|
||||
@Service
|
||||
class ToolManager : BaseToolManager<Tool>(SchemeManagerFactory.getInstance(), "tools", ToolsBundle.message("tools.settings")) {
|
||||
@@ -17,16 +18,18 @@ class ToolManager : BaseToolManager<Tool>(SchemeManagerFactory.getInstance(), "t
|
||||
fun getInstance(): ToolManager = service<ToolManager>()
|
||||
}
|
||||
|
||||
override fun createProcessor(): SchemeProcessor<ToolsGroup<Tool?>, ToolsGroup<Tool?>> {
|
||||
return object : ToolsProcessor<Tool?>() {
|
||||
override fun createToolsGroup(groupName: String?) = ToolsGroup<Tool?>(groupName)
|
||||
override fun createProcessor(): SchemeProcessor<ToolsGroup<Tool>, ToolsGroup<Tool>> {
|
||||
return object : ToolsProcessor<Tool>() {
|
||||
override fun createToolsGroup(groupName: String) = ToolsGroup<Tool>(groupName)
|
||||
|
||||
override fun createTool(): Tool = Tool()
|
||||
}
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
override fun getActionIdPrefix(): String = Tool.ACTION_ID_PREFIX
|
||||
|
||||
@ApiStatus.Internal
|
||||
public override fun getGroupIdPrefix(): String = "Tools_"
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.tools;
|
||||
|
||||
import com.intellij.openapi.options.CompoundScheme;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public final class ToolsGroup<T extends Tool> extends CompoundScheme<T> {
|
||||
public ToolsGroup(final String name) {
|
||||
public ToolsGroup(@NotNull String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
|
||||
package com.intellij.tools;
|
||||
|
||||
@@ -109,7 +109,7 @@ public abstract class ToolsProcessor<T extends Tool> extends NonLazySchemeProces
|
||||
return Tool.DEFAULT_GROUP_NAME;
|
||||
}
|
||||
|
||||
protected abstract ToolsGroup<T> createToolsGroup(String groupName);
|
||||
protected abstract ToolsGroup<T> createToolsGroup(@NotNull String groupName);
|
||||
|
||||
protected abstract T createTool();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user