mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-21 22:11:40 +07:00
[java] Make extension classes final
GitOrigin-RevId: 1aae04982598568a111e8c78b9a71c9d2b4aa150
This commit is contained in:
committed by
intellij-monorepo-bot
parent
06342a71b3
commit
019a6852f4
@@ -7,7 +7,7 @@ import com.intellij.openapi.roots.FileIndexUtil;
|
||||
import com.intellij.openapi.util.Condition;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
|
||||
public class DefaultProblemFileHighlightFilter implements Condition<VirtualFile> {
|
||||
public final class DefaultProblemFileHighlightFilter implements Condition<VirtualFile> {
|
||||
private final Project myProject;
|
||||
|
||||
public DefaultProblemFileHighlightFilter(Project project) {
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import javax.swing.*;
|
||||
|
||||
|
||||
public class CompilerIconLayerProvider implements IconLayerProvider {
|
||||
public final class CompilerIconLayerProvider implements IconLayerProvider {
|
||||
@Override
|
||||
public Icon getLayerIcon(@NotNull Iconable element, boolean isLocked) {
|
||||
VirtualFile vFile = null;
|
||||
|
||||
@@ -122,7 +122,7 @@ public abstract class CompilerReferenceServiceBase<Reader extends CompilerRefere
|
||||
return !CompilerReferenceIndex.versionDiffers(buildDir, myReaderFactory.expectedIndexVersion());
|
||||
}
|
||||
|
||||
public static class JCRIIsUpToDateConsumer implements IsUpToDateCheckConsumer {
|
||||
public static final class JCRIIsUpToDateConsumer implements IsUpToDateCheckConsumer {
|
||||
@Override
|
||||
public boolean isApplicable(@NotNull Project project) {
|
||||
CompilerReferenceServiceBase<?> serviceBase = getInstanceIfEnabled(project);
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.intellij.openapi.util.registry.Registry;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class CompilerCacheConfigurableProvider extends ConfigurableProvider {
|
||||
public final class CompilerCacheConfigurableProvider extends ConfigurableProvider {
|
||||
@NotNull
|
||||
private final Project myProject;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.intellij.internal.statistic.eventLog.events.EventFields;
|
||||
import com.intellij.internal.statistic.eventLog.events.EventId1;
|
||||
import com.intellij.internal.statistic.service.fus.collectors.CounterUsagesCollector;
|
||||
|
||||
public class BuildUsageCollector extends CounterUsagesCollector {
|
||||
public final class BuildUsageCollector extends CounterUsagesCollector {
|
||||
private static final EventLogGroup GROUP = new EventLogGroup("build.jps", 2);
|
||||
private static final EventId1<Long> REBUILD_COMPLETED = GROUP.registerEvent("rebuild.completed", EventFields.DurationMs);
|
||||
private static final EventId1<Long> BUILD_COMPLETED = GROUP.registerEvent("build.completed", EventFields.DurationMs);
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.jetbrains.jps.model.java.JavaModuleSourceRootTypes;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.*;
|
||||
|
||||
public class CompilerEncodingServiceImpl extends CompilerEncodingService {
|
||||
public final class CompilerEncodingServiceImpl extends CompilerEncodingService {
|
||||
@NotNull private final Project myProject;
|
||||
private final CachedValue<Map<Module, Set<Charset>>> myModuleFileEncodings;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
/**
|
||||
* @author Konstantin Aleev
|
||||
*/
|
||||
public class JavaResourcesBuildContributor implements UpdateResourcesBuildContributor {
|
||||
public final class JavaResourcesBuildContributor implements UpdateResourcesBuildContributor {
|
||||
@Override
|
||||
@NotNull
|
||||
public List<? extends ModuleBasedBuildTargetType<?>> getResourceTargetTypes() {
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.Set;
|
||||
/**
|
||||
* @author Eugene Zhuravlev
|
||||
*/
|
||||
public class JavaCompilableFileTypesProvider implements CompilableFileTypesProvider {
|
||||
public final class JavaCompilableFileTypesProvider implements CompilableFileTypesProvider {
|
||||
|
||||
@Override
|
||||
public @NotNull Set<FileType> getCompilableFileTypes() {
|
||||
|
||||
@@ -19,7 +19,7 @@ public class BuildOnSaveInfo extends ActionOnSaveBackedByOwnConfigurable<Compile
|
||||
* In Android Studio, the 'Build project automatically' checkbox is available on the {@link com.android.tools.idea.gradle.project.build.compiler.GradleCompilerSettingsConfigurable}
|
||||
* page, and the 'Build project' check box will be contributed to the 'Action on Save' page by {@link com.android.tools.idea.gradle.project.build.compiler.GradleCompilerSettingsConfigurable.BuildOnSaveInfoProvider}.
|
||||
*/
|
||||
public static class BuildOnSaveInfoProvider extends ActionOnSaveInfoProvider {
|
||||
public static final class BuildOnSaveInfoProvider extends ActionOnSaveInfoProvider {
|
||||
@Override
|
||||
protected @NotNull Collection<? extends ActionOnSaveInfo> getActionOnSaveInfos(@NotNull ActionOnSaveContext context) {
|
||||
if (context.getSettings().find(CompilerConfigurable.CONFIGURABLE_ID) == null) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
/**
|
||||
* Adds custom plugins configured in {@link BuildProcessCustomPluginsConfiguration} to the build process' classpath.
|
||||
*/
|
||||
public class CustomBuildProcessPluginsClasspathProvider extends BuildProcessParametersProvider {
|
||||
public final class CustomBuildProcessPluginsClasspathProvider extends BuildProcessParametersProvider {
|
||||
private final Project myProject;
|
||||
|
||||
public CustomBuildProcessPluginsClasspathProvider(Project project) {
|
||||
|
||||
@@ -14,7 +14,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class DeploymentUtilImpl extends DeploymentUtil {
|
||||
public final class DeploymentUtilImpl extends DeploymentUtil {
|
||||
private static final Logger LOG = Logger.getInstance(DeploymentUtilImpl.class);
|
||||
|
||||
// OS X is sensitive for that
|
||||
|
||||
@@ -37,7 +37,7 @@ import java.util.Map;
|
||||
/**
|
||||
* @author Vladislav.Soroka
|
||||
*/
|
||||
public class CompilerConfigurationHandler implements ConfigurationHandler {
|
||||
public final class CompilerConfigurationHandler implements ConfigurationHandler {
|
||||
|
||||
private static final Logger LOG = Logger.getInstance(CompilerConfigurationHandler.class);
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class ArtifactBySourceFileFinderImpl extends ArtifactBySourceFileFinder {
|
||||
public final class ArtifactBySourceFileFinderImpl extends ArtifactBySourceFileFinder {
|
||||
private CachedValue<MultiValuesMap<VirtualFile, Artifact>> myFile2Artifacts;
|
||||
private final Project myProject;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import javax.swing.*;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class JarArtifactType extends ArtifactType {
|
||||
public final class JarArtifactType extends ArtifactType {
|
||||
public JarArtifactType() {
|
||||
super("jar", JavaCompilerBundle.messagePointer("jar.text"));
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class PlainArtifactType extends ArtifactType {
|
||||
public final class PlainArtifactType extends ArtifactType {
|
||||
@NonNls public static final String ID = "plain";
|
||||
|
||||
public static PlainArtifactType getInstance() {
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Parame
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class ArtifactBuildTargetScopeProvider extends BuildTargetScopeProvider {
|
||||
public final class ArtifactBuildTargetScopeProvider extends BuildTargetScopeProvider {
|
||||
@NotNull
|
||||
@Override
|
||||
public List<TargetTypeBuildScope> getBuildTargetScopes(@NotNull final CompileScope baseScope,
|
||||
|
||||
@@ -35,7 +35,7 @@ import static kotlinx.collections.immutable.ExtensionsKt.toPersistentList;
|
||||
import static org.jetbrains.jps.model.serialization.library.JpsLibraryTableSerializer.APPLICATION_LEVEL;
|
||||
import static org.jetbrains.jps.model.serialization.library.JpsLibraryTableSerializer.PROJECT_LEVEL;
|
||||
|
||||
public class PackagingElementFactoryImpl extends PackagingElementFactory {
|
||||
public final class PackagingElementFactoryImpl extends PackagingElementFactory {
|
||||
private static final Logger LOG = Logger.getInstance(PackagingElementFactoryImpl.class);
|
||||
public static final PackagingElementType<DirectoryPackagingElement> DIRECTORY_ELEMENT_TYPE = new DirectoryElementType();
|
||||
public static final PackagingElementType<ArchivePackagingElement> ARCHIVE_ELEMENT_TYPE = new ArchiveElementType();
|
||||
|
||||
@@ -62,7 +62,7 @@ public final class CompilerWorkspaceConfiguration implements PersistentStateComp
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
static class JavaBuildWorkspaceConfiguration implements BuildWorkspaceConfiguration {
|
||||
static final class JavaBuildWorkspaceConfiguration implements BuildWorkspaceConfiguration {
|
||||
private final @NotNull Project myProject;
|
||||
|
||||
JavaBuildWorkspaceConfiguration(@NotNull Project project) {
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
public class JavaCompilerConfiguration extends JavaCompilerConfigurationProxy {
|
||||
public final class JavaCompilerConfiguration extends JavaCompilerConfigurationProxy {
|
||||
@Override
|
||||
@NotNull
|
||||
public List<String> getAdditionalOptionsImpl(@NotNull Project project, @NotNull Module module) {
|
||||
@@ -44,7 +44,7 @@ public class JavaCompilerConfiguration extends JavaCompilerConfigurationProxy {
|
||||
/**
|
||||
* Provides an option "JavaCompilerConfiguration.additionalOptions" to change module-specific compiler options
|
||||
*/
|
||||
public static class Provider implements OptionControllerProvider {
|
||||
public static final class Provider implements OptionControllerProvider {
|
||||
|
||||
@SuppressWarnings({"InjectedReferences", "LanguageMismatch"})
|
||||
@Override
|
||||
|
||||
@@ -12,7 +12,7 @@ import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Condition;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
|
||||
class DebuggerKeymapExtension implements KeymapExtension {
|
||||
final class DebuggerKeymapExtension implements KeymapExtension {
|
||||
@Override
|
||||
public KeymapGroup createGroup(final Condition<? super AnAction> filtered, final Project project) {
|
||||
AnAction[] xDebuggerActions = ActionsTreeUtil.getActions("XDebugger.Actions");
|
||||
|
||||
@@ -5,7 +5,7 @@ import com.intellij.internal.statistic.eventLog.EventLogGroup;
|
||||
import com.intellij.internal.statistic.eventLog.events.EventId;
|
||||
import com.intellij.internal.statistic.service.fus.collectors.CounterUsagesCollector;
|
||||
|
||||
public class JavaDebuggerActionsCollector extends CounterUsagesCollector {
|
||||
public final class JavaDebuggerActionsCollector extends CounterUsagesCollector {
|
||||
private static final EventLogGroup group = new EventLogGroup("java.debugger.actions", 2);
|
||||
public static final EventId attachFromConsoleInlay = group.registerEvent("attach.inlay");
|
||||
public static final EventId attachFromConsoleInlayShown = group.registerEvent("attach.inlay.shown");
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.intellij.psi.codeStyle.JavaCodeStyleManager;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class JavaWithRuntimeCastSurrounder extends JavaExpressionSurrounder {
|
||||
public final class JavaWithRuntimeCastSurrounder extends JavaExpressionSurrounder {
|
||||
|
||||
@Override
|
||||
public String getTemplateDescription() {
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public class DefaultSourcePositionProvider extends SourcePositionProvider {
|
||||
public final class DefaultSourcePositionProvider extends SourcePositionProvider {
|
||||
@Nullable
|
||||
@Override
|
||||
protected SourcePosition computeSourcePosition(@NotNull NodeDescriptor descriptor,
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* @author Nikolay.Tropin
|
||||
*/
|
||||
public class DefaultSyntheticProvider implements SyntheticTypeComponentProvider {
|
||||
public final class DefaultSyntheticProvider implements SyntheticTypeComponentProvider {
|
||||
|
||||
@Override
|
||||
public boolean isSynthetic(@NotNull TypeComponent typeComponent) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* @author Nikolay.Tropin
|
||||
*/
|
||||
public class JavaSimpleGetterProvider implements SimplePropertyGetterProvider {
|
||||
public final class JavaSimpleGetterProvider implements SimplePropertyGetterProvider {
|
||||
@Override
|
||||
public boolean isInsideSimpleGetter(@NotNull PsiElement element) {
|
||||
PsiMethod method = PsiTreeUtil.getParentOfType(element, PsiMethod.class);
|
||||
|
||||
@@ -13,7 +13,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
/**
|
||||
* @author Nikolay.Tropin
|
||||
*/
|
||||
public class JavaSourcePositionHighlighter extends SourcePositionHighlighter implements DumbAware {
|
||||
public final class JavaSourcePositionHighlighter extends SourcePositionHighlighter implements DumbAware {
|
||||
@Override
|
||||
public TextRange getHighlightRange(SourcePosition sourcePosition) {
|
||||
TextRange range = getHighlightRangeInternal(sourcePosition);
|
||||
|
||||
@@ -24,7 +24,7 @@ import com.sun.jdi.*;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class JavaDfaAssistProvider implements DfaAssistProvider {
|
||||
public final class JavaDfaAssistProvider implements DfaAssistProvider {
|
||||
@Override
|
||||
public boolean locationMatches(@NotNull PsiElement element, @NotNull Location location) {
|
||||
Method method = location.method();
|
||||
|
||||
@@ -21,7 +21,7 @@ import com.intellij.codeInsight.daemon.impl.HighlightInfoType;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class DebuggerHighlightFilter implements HighlightInfoFilter {
|
||||
public final class DebuggerHighlightFilter implements HighlightInfoFilter {
|
||||
@Override
|
||||
public boolean accept(@NotNull HighlightInfo highlightInfo, PsiFile file) {
|
||||
return highlightInfo.type != HighlightInfoType.UNHANDLED_EXCEPTION ||
|
||||
|
||||
@@ -48,7 +48,7 @@ import javax.swing.*;
|
||||
import java.util.*;
|
||||
|
||||
@State(name = "DebuggerManager", storages = @Storage(StoragePathMacros.WORKSPACE_FILE))
|
||||
public class DebuggerManagerImpl extends DebuggerManagerEx implements PersistentStateComponent<Element> {
|
||||
public final class DebuggerManagerImpl extends DebuggerManagerEx implements PersistentStateComponent<Element> {
|
||||
private static final Logger LOG = Logger.getInstance(DebuggerManagerImpl.class);
|
||||
public static final String LOCALHOST_ADDRESS_FALLBACK = "127.0.0.1";
|
||||
private static final int WAIT_KILL_TIMEOUT = 10000;
|
||||
|
||||
@@ -67,7 +67,7 @@ import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class DebuggerUtilsImpl extends DebuggerUtilsEx {
|
||||
public final class DebuggerUtilsImpl extends DebuggerUtilsEx {
|
||||
public static final Key<PsiType> PSI_TYPE_KEY = Key.create("PSI_TYPE_KEY");
|
||||
private static final Logger LOG = Logger.getInstance(DebuggerUtilsImpl.class);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
/**
|
||||
* @author Maxim.Medvedev
|
||||
*/
|
||||
public class JavaEditorTextProviderImpl implements EditorTextProvider {
|
||||
public final class JavaEditorTextProviderImpl implements EditorTextProvider {
|
||||
private static final Logger LOG = Logger.getInstance(JavaEditorTextProviderImpl.class);
|
||||
|
||||
@Override
|
||||
|
||||
@@ -460,7 +460,7 @@ public class JavaAttachDebuggerProvider implements XAttachDebuggerProvider {
|
||||
}
|
||||
}
|
||||
|
||||
public static class ProcessAttachDebuggerRunner extends GenericDebuggerRunner {
|
||||
public static final class ProcessAttachDebuggerRunner extends GenericDebuggerRunner {
|
||||
@NotNull
|
||||
@Override
|
||||
public String getRunnerId() {
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
public class JavaDebuggerAddExceptionBreakpointFilter implements JvmExceptionOccurrenceFilter {
|
||||
public final class JavaDebuggerAddExceptionBreakpointFilter implements JvmExceptionOccurrenceFilter {
|
||||
@Override
|
||||
public @Nullable ResultItem applyFilter(@NotNull String exceptionClassName,
|
||||
@NotNull List<PsiClass> classes,
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.intellij.execution.process.ProcessInfo;
|
||||
import com.intellij.xdebugger.attach.XAttachPresentationGroup;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class JavaSAAttachDebuggerProvider extends JavaAttachDebuggerProvider {
|
||||
public final class JavaSAAttachDebuggerProvider extends JavaAttachDebuggerProvider {
|
||||
private static final XAttachPresentationGroup<ProcessInfo> ourAttachGroup = new JavaDebuggerAttachGroup(
|
||||
JavaDebuggerBundle.message("debugger.attach.group.name.java.read.only"), -19);
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class CaptureConfigurable implements SearchableConfigurable, NoScroll {
|
||||
public final class CaptureConfigurable implements SearchableConfigurable, NoScroll {
|
||||
private static final Logger LOG = Logger.getInstance(CaptureConfigurable.class);
|
||||
private final Project myProject;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import java.util.Set;
|
||||
|
||||
import static com.intellij.internal.statistic.beans.MetricEventUtilKt.addBoolIfDiffers;
|
||||
|
||||
public class DebuggerSettingsStatisticsCollector extends ApplicationUsagesCollector {
|
||||
public final class DebuggerSettingsStatisticsCollector extends ApplicationUsagesCollector {
|
||||
private static final EventLogGroup GROUP = new EventLogGroup("debugger.settings.ide", 4);
|
||||
private static final VarargEventId DISABLE_JIT = GROUP.registerVarargEvent("disableJit", EventFields.Enabled);
|
||||
private static final VarargEventId SHOW_ALTERNATIVE_SOURCE = GROUP.registerVarargEvent("showAlternativeSource", EventFields.Enabled);
|
||||
|
||||
@@ -25,7 +25,7 @@ import static java.util.Collections.singletonList;
|
||||
* But we must implement createConfigurable as part of XDebuggerSettings otherwise java general settings will be before xdebugger general setting,
|
||||
* because JavaDebuggerSettingsPanelProvider has higher priority than XDebuggerSettingsPanelProviderImpl.
|
||||
*/
|
||||
public class JavaDebuggerSettings extends XDebuggerSettings<Element> {
|
||||
public final class JavaDebuggerSettings extends XDebuggerSettings<Element> {
|
||||
protected JavaDebuggerSettings() {
|
||||
super("java");
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
import javax.swing.*;
|
||||
import java.util.Collection;
|
||||
|
||||
class XBreakpointGroupingByClassRule<B> extends XBreakpointGroupingRule<B, XBreakpointClassGroup> {
|
||||
final class XBreakpointGroupingByClassRule<B> extends XBreakpointGroupingRule<B, XBreakpointClassGroup> {
|
||||
XBreakpointGroupingByClassRule() {
|
||||
super("XBreakpointGroupingByClassRule", JavaDebuggerBundle.message("rule.name.group.by.class"));
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
import javax.swing.*;
|
||||
import java.util.Collection;
|
||||
|
||||
public class XBreakpointGroupingByPackageRule<B> extends XBreakpointGroupingRule<B, XBreakpointPackageGroup> {
|
||||
public final class XBreakpointGroupingByPackageRule<B> extends XBreakpointGroupingRule<B, XBreakpointPackageGroup> {
|
||||
|
||||
protected XBreakpointGroupingByPackageRule() {
|
||||
super("XBreakpointGroupingByPackageRule", JavaDebuggerBundle.message("rule.name.group.by.package"));
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.jetbrains.java.debugger.breakpoints.properties.JavaFieldBreakpointPro
|
||||
import javax.swing.*;
|
||||
|
||||
@ApiStatus.Experimental
|
||||
public class JavaCollectionBreakpointType extends JavaLineBreakpointTypeBase<JavaCollectionBreakpointProperties> {
|
||||
public final class JavaCollectionBreakpointType extends JavaLineBreakpointTypeBase<JavaCollectionBreakpointProperties> {
|
||||
|
||||
public JavaCollectionBreakpointType() {
|
||||
super("java-collection", JavaDebuggerBundle.message("collection.watchpoints.tab.title"));
|
||||
|
||||
@@ -25,7 +25,7 @@ import javax.swing.*;
|
||||
/**
|
||||
* @author Eugene Zhuravlev
|
||||
*/
|
||||
public class JavaExceptionBreakpointType extends JavaBreakpointTypeBase<JavaExceptionBreakpointProperties> {
|
||||
public final class JavaExceptionBreakpointType extends JavaBreakpointTypeBase<JavaExceptionBreakpointProperties> {
|
||||
public JavaExceptionBreakpointType() {
|
||||
super("java-exception", JavaDebuggerBundle.message("exception.breakpoints.tab.title"));
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ import javax.swing.*;
|
||||
/**
|
||||
* @author Eugene Zhuravlev
|
||||
*/
|
||||
public class JavaFieldBreakpointType extends JavaLineBreakpointTypeBase<JavaFieldBreakpointProperties> {
|
||||
public final class JavaFieldBreakpointType extends JavaLineBreakpointTypeBase<JavaFieldBreakpointProperties> {
|
||||
public JavaFieldBreakpointType() {
|
||||
super("java-field", JavaDebuggerBundle.message("field.watchpoints.tab.title"));
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ import javax.swing.*;
|
||||
/**
|
||||
* @author Egor
|
||||
*/
|
||||
public class JavaWildcardMethodBreakpointType extends JavaBreakpointTypeBase<JavaMethodBreakpointProperties> {
|
||||
public final class JavaWildcardMethodBreakpointType extends JavaBreakpointTypeBase<JavaMethodBreakpointProperties> {
|
||||
public JavaWildcardMethodBreakpointType() {
|
||||
super("java-wildcard-method", JavaDebuggerBundle.message("method.breakpoints.tab.title"));
|
||||
}
|
||||
|
||||
@@ -257,7 +257,7 @@ public class StackCapturingLineBreakpoint extends SyntheticMethodBreakpoint {
|
||||
}
|
||||
}
|
||||
|
||||
public static class CaptureAsyncStackTraceProvider implements AsyncStackTraceProvider {
|
||||
public static final class CaptureAsyncStackTraceProvider implements AsyncStackTraceProvider {
|
||||
@Nullable
|
||||
@Override
|
||||
public List<StackFrameItem> getAsyncStackTrace(@NotNull JavaStackFrame stackFrame, @NotNull SuspendContextImpl suspendContext) {
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* @author Nikolay.Tropin
|
||||
*/
|
||||
public class FieldOuterLocalNameAdjuster extends NodeDescriptorNameAdjuster {
|
||||
public final class FieldOuterLocalNameAdjuster extends NodeDescriptorNameAdjuster {
|
||||
|
||||
@Override
|
||||
public boolean isApplicable(@NotNull NodeDescriptor descriptor) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.sun.jdi.*;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.function.Function;
|
||||
|
||||
public class BinaryRenderer extends CompoundRendererProvider {
|
||||
public final class BinaryRenderer extends CompoundRendererProvider {
|
||||
private static final Logger LOG = Logger.getInstance(BinaryRenderer.class);
|
||||
|
||||
@Override
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
class ClassObjectRenderer extends CompoundRendererProvider {
|
||||
final class ClassObjectRenderer extends CompoundRendererProvider {
|
||||
private static final Logger LOG = Logger.getInstance(ClassObjectRenderer.class);
|
||||
|
||||
@Override
|
||||
|
||||
@@ -17,7 +17,7 @@ import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.util.Collections;
|
||||
|
||||
class ColorObjectRenderer extends CompoundRendererProvider {
|
||||
final class ColorObjectRenderer extends CompoundRendererProvider {
|
||||
private static final Logger LOG = Logger.getInstance(ColorObjectRenderer.class);
|
||||
|
||||
@Override
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.intellij.debugger.ui.tree.render;
|
||||
import com.intellij.debugger.settings.NodeRendererSettings;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
|
||||
public class FileObjectRenderer extends CompoundRendererProvider {
|
||||
public final class FileObjectRenderer extends CompoundRendererProvider {
|
||||
@Override
|
||||
protected String getName() {
|
||||
return "File";
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.sun.jdi.*;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class GraphicsObjectRenderer extends CompoundRendererProvider {
|
||||
public final class GraphicsObjectRenderer extends CompoundRendererProvider {
|
||||
@Override
|
||||
protected String getName() {
|
||||
return "Graphics";
|
||||
|
||||
@@ -14,7 +14,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
class IconObjectRenderer extends CompoundRendererProvider {
|
||||
final class IconObjectRenderer extends CompoundRendererProvider {
|
||||
@Override
|
||||
protected String getName() {
|
||||
return "Icon";
|
||||
|
||||
@@ -18,7 +18,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
class StackTraceElementObjectRenderer extends CompoundRendererProvider {
|
||||
final class StackTraceElementObjectRenderer extends CompoundRendererProvider {
|
||||
private static final Logger LOG = Logger.getInstance(StackTraceElementObjectRenderer.class);
|
||||
|
||||
@Override
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.sql.Timestamp;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.function.Function;
|
||||
|
||||
public class TimestampRenderer extends CompoundRendererProvider {
|
||||
public final class TimestampRenderer extends CompoundRendererProvider {
|
||||
@Override
|
||||
protected String getName() {
|
||||
return "Timestamp";
|
||||
|
||||
@@ -79,49 +79,49 @@ public abstract class UnboxableTypeRenderer extends CompoundRendererProvider {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static class BooleanRenderer extends UnboxableTypeRenderer {
|
||||
public static final class BooleanRenderer extends UnboxableTypeRenderer {
|
||||
public BooleanRenderer() {
|
||||
super(CommonClassNames.JAVA_LANG_BOOLEAN);
|
||||
}
|
||||
}
|
||||
|
||||
public static class ByteRenderer extends UnboxableTypeRenderer {
|
||||
public static final class ByteRenderer extends UnboxableTypeRenderer {
|
||||
public ByteRenderer() {
|
||||
super(CommonClassNames.JAVA_LANG_BYTE);
|
||||
}
|
||||
}
|
||||
|
||||
public static class CharacterRenderer extends UnboxableTypeRenderer {
|
||||
public static final class CharacterRenderer extends UnboxableTypeRenderer {
|
||||
public CharacterRenderer() {
|
||||
super(CommonClassNames.JAVA_LANG_CHARACTER);
|
||||
}
|
||||
}
|
||||
|
||||
public static class ShortRenderer extends UnboxableTypeRenderer {
|
||||
public static final class ShortRenderer extends UnboxableTypeRenderer {
|
||||
public ShortRenderer() {
|
||||
super(CommonClassNames.JAVA_LANG_SHORT);
|
||||
}
|
||||
}
|
||||
|
||||
public static class IntegerRenderer extends UnboxableTypeRenderer {
|
||||
public static final class IntegerRenderer extends UnboxableTypeRenderer {
|
||||
public IntegerRenderer() {
|
||||
super(CommonClassNames.JAVA_LANG_INTEGER);
|
||||
}
|
||||
}
|
||||
|
||||
public static class LongRenderer extends UnboxableTypeRenderer {
|
||||
public static final class LongRenderer extends UnboxableTypeRenderer {
|
||||
public LongRenderer() {
|
||||
super(CommonClassNames.JAVA_LANG_LONG);
|
||||
}
|
||||
}
|
||||
|
||||
public static class FloatRenderer extends UnboxableTypeRenderer {
|
||||
public static final class FloatRenderer extends UnboxableTypeRenderer {
|
||||
public FloatRenderer() {
|
||||
super(CommonClassNames.JAVA_LANG_FLOAT);
|
||||
}
|
||||
}
|
||||
|
||||
public static class DoubleRenderer extends UnboxableTypeRenderer {
|
||||
public static final class DoubleRenderer extends UnboxableTypeRenderer {
|
||||
public DoubleRenderer() {
|
||||
super(CommonClassNames.JAVA_LANG_DOUBLE);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class CompileStepBeforeRun extends BeforeRunTaskProvider<CompileStepBeforeRun.MakeBeforeRunTask> implements DumbAware {
|
||||
public final class CompileStepBeforeRun extends BeforeRunTaskProvider<CompileStepBeforeRun.MakeBeforeRunTask> implements DumbAware {
|
||||
private static final Logger LOG = Logger.getInstance(CompileStepBeforeRun.class);
|
||||
public static final Key<MakeBeforeRunTask> ID = Key.create("Make");
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class CompileStepBeforeRunImporter implements BeforeRunTaskImporter {
|
||||
public final class CompileStepBeforeRunImporter implements BeforeRunTaskImporter {
|
||||
@Override
|
||||
public List<BeforeRunTask> process(@NotNull Project project,
|
||||
@NotNull IdeModifiableModelsProvider modelsProvider,
|
||||
|
||||
@@ -15,7 +15,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class CompileStepBeforeRunNoErrorCheck
|
||||
public final class CompileStepBeforeRunNoErrorCheck
|
||||
extends BeforeRunTaskProvider<CompileStepBeforeRunNoErrorCheck.MakeBeforeRunTaskNoErrorCheck> implements DumbAware {
|
||||
public static final Key<MakeBeforeRunTaskNoErrorCheck> ID = Key.create("MakeNoErrorCheck");
|
||||
@NotNull private final Project myProject;
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class MakeProjectStepBeforeRun extends BeforeRunTaskProvider<MakeProjectStepBeforeRun.MakeProjectBeforeRunTask>
|
||||
public final class MakeProjectStepBeforeRun extends BeforeRunTaskProvider<MakeProjectStepBeforeRun.MakeProjectBeforeRunTask>
|
||||
implements DumbAware {
|
||||
public static final Key<MakeProjectBeforeRunTask> ID = Key.create("MakeProject");
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class AlternativeSdkRootsProvider extends AdditionalLibraryRootsProvider {
|
||||
public final class AlternativeSdkRootsProvider extends AdditionalLibraryRootsProvider {
|
||||
private static final Key<Collection<SyntheticLibrary>> ALTERNATIVE_SDK_LIBS_KEY = Key.create("ALTERNATIVE_SDK_LIBS_KEY");
|
||||
|
||||
@Override
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class AlternativeSdkRootsProviderForJdkUpdate implements JdkUpdateCheckContributor {
|
||||
public final class AlternativeSdkRootsProviderForJdkUpdate implements JdkUpdateCheckContributor {
|
||||
@NotNull
|
||||
@Override
|
||||
public List<Sdk> contributeJdks(@NotNull Project project) {
|
||||
|
||||
@@ -19,7 +19,7 @@ import org.xml.sax.helpers.DefaultHandler;
|
||||
import java.io.Reader;
|
||||
|
||||
public class AntTestContentHandler extends DefaultHandler {
|
||||
public static class AntTestOutputExtension implements ImportTestOutputExtension {
|
||||
public static final class AntTestOutputExtension implements ImportTestOutputExtension {
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.intellij.psi.PsiElement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class CommonJavaRunDashboardCustomizer extends RunDashboardCustomizer {
|
||||
public final class CommonJavaRunDashboardCustomizer extends RunDashboardCustomizer {
|
||||
@Override
|
||||
public boolean isApplicable(@NotNull RunnerAndConfigurationSettings settings, @Nullable RunContentDescriptor descriptor) {
|
||||
RunConfiguration runConfiguration = settings.getConfiguration();
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.function.Function;
|
||||
import static com.intellij.lang.jvm.util.JvmMainMethodUtil.hasMainMethodInHierarchy;
|
||||
import static com.intellij.lang.jvm.util.JvmMainMethodUtil.isMainMethod;
|
||||
|
||||
public class JvmApplicationRunLineMarkerContributor extends JvmRunLineMarkerContributor {
|
||||
public final class JvmApplicationRunLineMarkerContributor extends JvmRunLineMarkerContributor {
|
||||
@Override
|
||||
protected @Nullable Info getInfo(@NotNull PsiElement psiElement, @NotNull JvmElement element) {
|
||||
return showMarker(element) ? info(psiElement) : null;
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.intellij.execution.filters;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class ExceptionLineParserFactoryImpl implements ExceptionLineParserFactory {
|
||||
public final class ExceptionLineParserFactoryImpl implements ExceptionLineParserFactory {
|
||||
@Override
|
||||
public ExceptionLineParser create(@NotNull ExceptionInfoCache cache) {
|
||||
return new ExceptionLineParserImpl(cache);
|
||||
|
||||
@@ -18,7 +18,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.regex.Matcher;
|
||||
|
||||
public class JavaDebuggerAutoAttach extends RunConfigurationExtension {
|
||||
public final class JavaDebuggerAutoAttach extends RunConfigurationExtension {
|
||||
@Override
|
||||
public <T extends RunConfigurationBase<?>> void updateJavaParameters(@NotNull T configuration,
|
||||
@NotNull JavaParameters params,
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.util.Arrays;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public class JavaDebuggerConsoleFilterProvider implements ConsoleFilterProvider {
|
||||
public final class JavaDebuggerConsoleFilterProvider implements ConsoleFilterProvider {
|
||||
static final Pattern PATTERN = Pattern.compile("Listening for transport (\\S+) at address: (\\S+)");
|
||||
|
||||
@Override
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.intellij.execution.configurations.RunProfile;
|
||||
import com.intellij.execution.executors.DefaultDebugExecutor;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class JarApplicationDebuggerRunner extends GenericDebuggerRunner {
|
||||
public final class JarApplicationDebuggerRunner extends GenericDebuggerRunner {
|
||||
@Override
|
||||
public boolean canRun(@NotNull String executorId, @NotNull RunProfile profile) {
|
||||
return DefaultDebugExecutor.EXECUTOR_ID.equals(executorId) && profile instanceof JarApplicationConfiguration;
|
||||
|
||||
@@ -18,7 +18,7 @@ import com.intellij.rt.execution.application.AppMainV2;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class ProcessProxyFactoryImpl extends ProcessProxyFactory {
|
||||
public final class ProcessProxyFactoryImpl extends ProcessProxyFactory {
|
||||
private static final boolean ourMayUseLauncher = !Boolean.getBoolean("idea.no.launcher");
|
||||
|
||||
@Override
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.Objects;
|
||||
/**
|
||||
* @author Eugene Zhuravlev
|
||||
*/
|
||||
public class JavaScratchConfigurationProducer extends AbstractApplicationConfigurationProducer<JavaScratchConfiguration> {
|
||||
public final class JavaScratchConfigurationProducer extends AbstractApplicationConfigurationProducer<JavaScratchConfiguration> {
|
||||
@NotNull
|
||||
@Override
|
||||
public ConfigurationFactory getConfigurationFactory() {
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
/**
|
||||
* @author Konstantin Bulenkov
|
||||
*/
|
||||
public class BundledJreProvider implements JreProvider {
|
||||
public final class BundledJreProvider implements JreProvider {
|
||||
public static final String BUNDLED = "Bundled";
|
||||
|
||||
private final @Nullable String myBundle = AlternativeJrePathConverter.BUNDLED_JRE_PATH.getValue();
|
||||
|
||||
@@ -35,7 +35,7 @@ import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class VmOptionsCompletionContributor extends CompletionContributor implements DumbAware {
|
||||
public final class VmOptionsCompletionContributor extends CompletionContributor implements DumbAware {
|
||||
private static final Pattern OPTION_SEPARATOR = Pattern.compile("\\s+");
|
||||
private static final Pattern OPTION_MATCHER = Pattern.compile("^-XX:[+\\-]?(\\w+)(=.+)?$");
|
||||
private static final char OPTION_VALUE_SEPRATOR = '=';
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class ExceptionBaseFilterFactory implements ExceptionFilterFactory {
|
||||
public final class ExceptionBaseFilterFactory implements ExceptionFilterFactory {
|
||||
@NotNull
|
||||
@Override
|
||||
public Filter create(@NotNull GlobalSearchScope searchScope) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class NavigateToExceptionClassFilter implements JvmExceptionOccurrenceFilter {
|
||||
public final class NavigateToExceptionClassFilter implements JvmExceptionOccurrenceFilter {
|
||||
@Override
|
||||
public @Nullable ResultItem applyFilter(@NotNull String exceptionClassName,
|
||||
@NotNull List<PsiClass> classes,
|
||||
|
||||
@@ -9,7 +9,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class JavaIdeLanguageCustomization extends IdeLanguageCustomization {
|
||||
public final class JavaIdeLanguageCustomization extends IdeLanguageCustomization {
|
||||
@NotNull
|
||||
@Override
|
||||
public List<Language> getPrimaryIdeLanguages() {
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.roots.ui.configuration.libraries.CustomLibraryDescription;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class FacetEditorsFactoryImpl extends FacetEditorsFactory {
|
||||
public final class FacetEditorsFactoryImpl extends FacetEditorsFactory {
|
||||
public static FacetEditorsFactoryImpl getInstanceImpl() {
|
||||
return (FacetEditorsFactoryImpl)getInstance();
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@State(name = "FacetEditorsStateManager", storages = @Storage(StoragePathMacros.WORKSPACE_FILE))
|
||||
public class FacetEditorsStateManagerImpl extends FacetEditorsStateManager implements PersistentStateComponent<FacetEditorsStateManagerImpl.FacetEditorsStateBean>{
|
||||
public final class FacetEditorsStateManagerImpl extends FacetEditorsStateManager implements PersistentStateComponent<FacetEditorsStateManagerImpl.FacetEditorsStateBean>{
|
||||
private final Map<String, Object> myFacetTypeStates = new HashMap<>();
|
||||
private FacetEditorsStateBean myBean = new FacetEditorsStateBean();
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
public class DownloadableLibraryServiceImpl extends DownloadableLibraryService {
|
||||
public final class DownloadableLibraryServiceImpl extends DownloadableLibraryService {
|
||||
private static final Logger LOG = Logger.getInstance(DownloadableLibraryServiceImpl.class);
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -41,7 +41,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
|
||||
public class ProjectStructureSelectInTarget implements SelectInTarget, DumbAware {
|
||||
public final class ProjectStructureSelectInTarget implements SelectInTarget, DumbAware {
|
||||
@Override
|
||||
public boolean canSelect(SelectInContext context) {
|
||||
ProjectFileIndex fileIndex = ProjectRootManager.getInstance(context.getProject()).getFileIndex();
|
||||
|
||||
@@ -37,7 +37,7 @@ import javax.swing.tree.TreePath;
|
||||
import java.awt.*;
|
||||
import java.util.List;
|
||||
|
||||
public class GeneralModuleTypeForIdea extends GeneralModuleType {
|
||||
public final class GeneralModuleTypeForIdea extends GeneralModuleType {
|
||||
@Override
|
||||
public @NotNull ModuleBuilder createModuleBuilder() {
|
||||
return new GeneralModuleBuilder() {
|
||||
|
||||
@@ -30,7 +30,7 @@ public class ModuleTypeCategory extends ProjectCategory {
|
||||
}
|
||||
}
|
||||
|
||||
public static class JavaSE extends Java {
|
||||
public static final class JavaSE extends Java {
|
||||
@Override
|
||||
public int getWeight() {
|
||||
return JavaModuleBuilder.JAVA_WEIGHT;
|
||||
|
||||
@@ -37,7 +37,7 @@ import java.util.List;
|
||||
/**
|
||||
* @author Dmitry Avdeev
|
||||
*/
|
||||
public class ImportFromSourcesProvider extends ProjectImportProvider {
|
||||
public final class ImportFromSourcesProvider extends ProjectImportProvider {
|
||||
|
||||
public ImportFromSourcesProvider() {
|
||||
super(new ProjectFromSourcesBuilderImpl(null, null)); // fake
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
/**
|
||||
* @author Dmitry Avdeev
|
||||
*/
|
||||
public class ModuleImportProvider extends ProjectImportProvider {
|
||||
public final class ModuleImportProvider extends ProjectImportProvider {
|
||||
|
||||
public ModuleImportProvider() {
|
||||
super(new ModuleImportBuilder());
|
||||
|
||||
@@ -17,7 +17,7 @@ import javax.swing.*;
|
||||
/**
|
||||
* @author Eugene Zhuravlev
|
||||
*/
|
||||
public class ProjectWizardStepFactoryImpl extends ProjectWizardStepFactory {
|
||||
public final class ProjectWizardStepFactoryImpl extends ProjectWizardStepFactory {
|
||||
private static final Key<ProjectJdkStep> PROJECT_JDK_STEP_KEY = Key.create("ProjectJdkStep");
|
||||
|
||||
@Override
|
||||
|
||||
@@ -24,7 +24,7 @@ import java.io.File;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public class DefaultProjectStructureDetector extends ProjectStructureDetector {
|
||||
public final class DefaultProjectStructureDetector extends ProjectStructureDetector {
|
||||
@NotNull
|
||||
@Override
|
||||
public DirectoryProcessingResult detectRoots(@NotNull File dir,
|
||||
|
||||
@@ -19,7 +19,7 @@ import javax.swing.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class JavaProjectStructureDetector extends JavaSourceRootDetector {
|
||||
public final class JavaProjectStructureDetector extends JavaSourceRootDetector {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
|
||||
@@ -44,7 +44,7 @@ import static com.intellij.jarRepository.settings.JarRepositoryLibraryBindUtils.
|
||||
import static com.intellij.jarRepository.settings.JarRepositoryLibraryBindUtils.updateLibrariesRepositoryId;
|
||||
import static com.intellij.ui.ListUtil.removeSelectedItems;
|
||||
|
||||
public class RemoteRepositoriesConfigurable implements SearchableConfigurable, Configurable.NoScroll {
|
||||
public final class RemoteRepositoriesConfigurable implements SearchableConfigurable, Configurable.NoScroll {
|
||||
private JPanel myMainPanel;
|
||||
|
||||
private JBList<String> myServiceList;
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.Map;
|
||||
/**
|
||||
* @author Vladislav.Soroka
|
||||
*/
|
||||
public class ExternalModuleStructureExtension extends ModuleStructureExtension {
|
||||
public final class ExternalModuleStructureExtension extends ModuleStructureExtension {
|
||||
|
||||
private static final Logger LOG = Logger.getInstance(ExternalModuleStructureExtension.class);
|
||||
@Nullable
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@ApiStatus.Experimental
|
||||
public class PackagingModifiableModelProvider implements ModifiableModelsProviderExtension<PackagingModifiableModel> {
|
||||
public final class PackagingModifiableModelProvider implements ModifiableModelsProviderExtension<PackagingModifiableModel> {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
|
||||
@@ -23,7 +23,7 @@ import java.lang.reflect.Proxy;
|
||||
/**
|
||||
* @author Dennis.Ushakov
|
||||
*/
|
||||
public class IdeaModifiableModelsProvider implements ModifiableModelsProvider {
|
||||
public final class IdeaModifiableModelsProvider implements ModifiableModelsProvider {
|
||||
@Override
|
||||
@Nullable
|
||||
public ModifiableRootModel getModuleModifiableModel(@NotNull final Module module) {
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
import javax.swing.*;
|
||||
import java.io.File;
|
||||
|
||||
public class OrderEntryAppearanceServiceImpl extends OrderEntryAppearanceService {
|
||||
public final class OrderEntryAppearanceServiceImpl extends OrderEntryAppearanceService {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
|
||||
@@ -21,7 +21,7 @@ import com.intellij.openapi.module.ModuleConfigurationEditor;
|
||||
/**
|
||||
* @author Eugene Zhuravlev
|
||||
*/
|
||||
public class DefaultModuleConfigurationEditorFactoryImpl extends DefaultModuleConfigurationEditorFactory {
|
||||
public final class DefaultModuleConfigurationEditorFactoryImpl extends DefaultModuleConfigurationEditorFactory {
|
||||
@Override
|
||||
public ModuleConfigurationEditor createModuleContentRootsEditor(ModuleConfigurationState state) {
|
||||
final Module module = state.getCurrentRootModel().getModule();
|
||||
|
||||
@@ -19,7 +19,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
|
||||
public class IdeaProjectSettingsService extends ProjectSettingsService implements ArtifactAwareProjectSettingsService {
|
||||
public final class IdeaProjectSettingsService extends ProjectSettingsService implements ArtifactAwareProjectSettingsService {
|
||||
private final Project myProject;
|
||||
|
||||
public IdeaProjectSettingsService(final Project project) {
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.jetbrains.jps.model.java.JavaResourceRootType;
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class JavaResourceRootEditHandler extends JavaResourceRootEditHandlerBase {
|
||||
public final class JavaResourceRootEditHandler extends JavaResourceRootEditHandlerBase {
|
||||
public JavaResourceRootEditHandler() {
|
||||
super(JavaResourceRootType.RESOURCE);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.jetbrains.jps.model.java.JavaResourceRootType;
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class JavaTestResourceRootEditHandler extends JavaResourceRootEditHandlerBase {
|
||||
public final class JavaTestResourceRootEditHandler extends JavaResourceRootEditHandlerBase {
|
||||
public JavaTestResourceRootEditHandler() {
|
||||
super(JavaResourceRootType.TEST_RESOURCE);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
public class LibraryJavaSourceRootDetector extends RootDetector {
|
||||
public final class LibraryJavaSourceRootDetector extends RootDetector {
|
||||
public LibraryJavaSourceRootDetector() {
|
||||
super(OrderRootType.SOURCES, false, "sources");
|
||||
}
|
||||
|
||||
@@ -589,7 +589,7 @@ public class ModulesConfigurator implements ModulesProvider, ModuleEditor.Change
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
public static class NewProjectWizardFactoryImpl implements NewProjectWizardFactory {
|
||||
public static final class NewProjectWizardFactoryImpl implements NewProjectWizardFactory {
|
||||
|
||||
@Override
|
||||
public @NotNull NewProjectWizard create(@Nullable Project project,
|
||||
|
||||
@@ -17,7 +17,7 @@ import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class ArtifactsSourceItemsProvider extends PackagingSourceItemsProvider {
|
||||
public final class ArtifactsSourceItemsProvider extends PackagingSourceItemsProvider {
|
||||
@Override
|
||||
@NotNull
|
||||
public Collection<? extends PackagingSourceItem> getSourceItems(@NotNull ArtifactEditorContext editorContext,
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class ModulesAndLibrariesSourceItemsProvider extends PackagingSourceItemsProvider {
|
||||
public final class ModulesAndLibrariesSourceItemsProvider extends PackagingSourceItemsProvider {
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.intellij.openapi.roots.ui.OrderRootTypeUIFactory;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class AnnotationsOrderRootTypeUIFactory implements OrderRootTypeUIFactory {
|
||||
public final class AnnotationsOrderRootTypeUIFactory implements OrderRootTypeUIFactory {
|
||||
|
||||
@Override
|
||||
public Icon getIcon() {
|
||||
|
||||
@@ -18,7 +18,7 @@ import javax.swing.*;
|
||||
/**
|
||||
* @author anna
|
||||
*/
|
||||
public class ClassesOrderRootTypeUIFactory implements OrderRootTypeUIFactory {
|
||||
public final class ClassesOrderRootTypeUIFactory implements OrderRootTypeUIFactory {
|
||||
@Override
|
||||
public SdkPathEditor createPathEditor(Sdk sdk) {
|
||||
return new MySdkPathEditor(new FileChooserDescriptor(true, true, true, false, true, true));
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user