@JvmField
internal val LOG = Logger.getInstance(BaseInspectionProfileManager::class.java)
-abstract class BaseInspectionProfileManager(messageBus: MessageBus) : InspectionProfileManager {
+abstract class BaseInspectionProfileManager(messageBus: MessageBus) : InspectionProjectProfileManager() {
protected abstract val schemeManager: SchemeManager<InspectionProfileImpl>
protected val profileListeners: MutableList<ProfileChangeAdapter> = ContainerUtil.createLockFreeCopyOnWriteList<ProfileChangeAdapter>()
import org.jetbrains.annotations.NotNull;
// todo deprecate
-public interface InspectionProjectProfileManager extends InspectionProfileManager {
- static InspectionProjectProfileManager getInstance(@NotNull Project project){
+// cannot be interface due to backward compatibility
+public abstract class InspectionProjectProfileManager implements InspectionProfileManager {
+ public static InspectionProjectProfileManager getInstance(@NotNull Project project){
return project.getComponent(InspectionProjectProfileManager.class);
}
@NotNull
@Deprecated
- default InspectionProfile getInspectionProfile() {
+ public InspectionProfile getInspectionProfile() {
return getCurrentProfile();
}
*/
@SuppressWarnings({"UnusedDeclaration"})
@NotNull
- default InspectionProfile getInspectionProfile(PsiElement element){
+ public InspectionProfile getInspectionProfile(PsiElement element){
return getCurrentProfile();
}
}
private val applicationProfileManager: InspectionProfileManager,
private val scopeManager: DependencyValidationManager,
private val localScopesHolder: NamedScopeManager,
- schemeManagerFactory: SchemeManagerFactory) : BaseInspectionProfileManager(project.messageBus), PersistentStateComponent<Element>, InspectionProjectProfileManager {
+ schemeManagerFactory: SchemeManagerFactory) : BaseInspectionProfileManager(project.messageBus), PersistentStateComponent<Element> {
companion object {
@JvmStatic
fun getInstanceImpl(project: Project): ProjectInspectionProfileManager {