mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-148249 remove deprecated ImplicitPropertyUsageProvider - remove custom workaround in ClassLoaderConfigurator
GitOrigin-RevId: 0b9be3f282c0ff18ff4f91789798d489b6d2152a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bd200b5e34
commit
1b49ab879c
@@ -267,30 +267,12 @@ class ClassLoaderConfigurator(
|
||||
val resolveScopeManager: ResolveScopeManager?
|
||||
// main plugin descriptor
|
||||
if (module.moduleName == null) {
|
||||
resolveScopeManager = when (module.pluginId.idString) {
|
||||
"com.intellij.diagram" -> {
|
||||
// multiple packages - intellij.diagram and intellij.diagram.impl modules
|
||||
createScopeWithExtraPackage("com.intellij.diagram.")
|
||||
}
|
||||
"com.intellij.properties" -> {
|
||||
// todo ability to customize (cannot move due to backward compatibility)
|
||||
object : ResolveScopeManager {
|
||||
override fun isDefinitelyAlienClass(name: String, packagePrefix: String, force: Boolean): String? {
|
||||
if (force) {
|
||||
return null
|
||||
}
|
||||
else if (!name.startsWith(packagePrefix) &&
|
||||
!name.startsWith("com.intellij.ultimate.PluginVerifier") &&
|
||||
name != "com.intellij.codeInspection.unused.ImplicitPropertyUsageProvider") {
|
||||
return ""
|
||||
}
|
||||
else {
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else -> createPluginDependencyAndContentBasedScope(descriptor = module, pluginSet = pluginSet)
|
||||
resolveScopeManager = if (module.pluginId.idString == "com.intellij.diagram") {
|
||||
// multiple packages - intellij.diagram and intellij.diagram.impl modules
|
||||
createScopeWithExtraPackage("com.intellij.diagram.")
|
||||
}
|
||||
else {
|
||||
createPluginDependencyAndContentBasedScope(descriptor = module, pluginSet = pluginSet)
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
// 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.
|
||||
package com.intellij.codeInspection.unused;
|
||||
|
||||
import com.intellij.lang.properties.psi.Property;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link com.intellij.lang.properties.codeInspection.unused.ImplicitPropertyUsageProvider}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public abstract class ImplicitPropertyUsageProvider implements com.intellij.lang.properties.codeInspection.unused.ImplicitPropertyUsageProvider {
|
||||
@Override
|
||||
public abstract boolean isUsed(@NotNull Property property);
|
||||
}
|
||||
Reference in New Issue
Block a user