diff --git a/platform/platform-api/src/com/intellij/openapi/options/ShowSettingsUtil.java b/platform/platform-api/src/com/intellij/openapi/options/ShowSettingsUtil.java index 41c388534297..d6e2aaca64d7 100644 --- a/platform/platform-api/src/com/intellij/openapi/options/ShowSettingsUtil.java +++ b/platform/platform-api/src/com/intellij/openapi/options/ShowSettingsUtil.java @@ -1,18 +1,4 @@ -/* - * Copyright 2000-2016 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2018 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. package com.intellij.openapi.options; import com.intellij.openapi.components.ServiceManager; @@ -33,7 +19,7 @@ public abstract class ShowSettingsUtil { public abstract void showSettingsDialog(Project project, ConfigurableGroup... group); - public abstract void showSettingsDialog(@Nullable Project project, Class toSelect); + public abstract void showSettingsDialog(@Nullable Project project, @NotNull Class toSelect); public abstract void showSettingsDialog(@Nullable Project project, @NotNull String nameToSelect); diff --git a/platform/platform-impl/src/com/intellij/ide/actions/ShowSettingsUtilImpl.java b/platform/platform-impl/src/com/intellij/ide/actions/ShowSettingsUtilImpl.java index 260c0b10a081..be3fb376d8b8 100644 --- a/platform/platform-impl/src/com/intellij/ide/actions/ShowSettingsUtilImpl.java +++ b/platform/platform-impl/src/com/intellij/ide/actions/ShowSettingsUtilImpl.java @@ -89,8 +89,7 @@ public class ShowSettingsUtilImpl extends ShowSettingsUtil { } @Override - public void showSettingsDialog(@Nullable final Project project, final Class configurableClass) { - //noinspection unchecked + public void showSettingsDialog(@Nullable Project project, @NotNull Class configurableClass) { showSettingsDialog(project, configurableClass, null); }