mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Enhanced switch used
GitOrigin-RevId: 5d899aa51039c35936f81cf7b20d48c5e8e046a4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
259eff7f8e
commit
2d45c71f18
+4
-8
@@ -83,14 +83,10 @@ public class AnnotateFix implements LocalQuickFix {
|
||||
|
||||
final String argList;
|
||||
if (myArgList == null) {
|
||||
switch (requirement) {
|
||||
case VALUE_REQUIRED:
|
||||
case OTHER_REQUIRED:
|
||||
argList = "(\"\")";
|
||||
break;
|
||||
default:
|
||||
argList = "";
|
||||
}
|
||||
argList = switch (requirement) {
|
||||
case VALUE_REQUIRED, OTHER_REQUIRED -> "(\"\")";
|
||||
default -> "";
|
||||
};
|
||||
}
|
||||
else {
|
||||
argList = myArgList;
|
||||
|
||||
@@ -124,7 +124,7 @@ public abstract class PropertyProviderFinder extends AntDomRecursiveVisitor {
|
||||
String effectiveTargetName;
|
||||
final InclusionKind inclusionKind = myNameContext.getCurrentInclusionKind();
|
||||
switch (inclusionKind) {
|
||||
case IMPORT:
|
||||
case IMPORT -> {
|
||||
final String alias = myNameContext.getShortPrefix() + declaredTargetName;
|
||||
if (!myTargetsResolveMap.containsKey(declaredTargetName)) {
|
||||
effectiveTargetName = declaredTargetName;
|
||||
@@ -133,15 +133,9 @@ public abstract class PropertyProviderFinder extends AntDomRecursiveVisitor {
|
||||
else {
|
||||
effectiveTargetName = alias;
|
||||
}
|
||||
break;
|
||||
|
||||
case INCLUDE:
|
||||
effectiveTargetName = myNameContext.getFQPrefix() + declaredTargetName;
|
||||
break;
|
||||
|
||||
default:
|
||||
effectiveTargetName = declaredTargetName;
|
||||
break;
|
||||
}
|
||||
case INCLUDE -> effectiveTargetName = myNameContext.getFQPrefix() + declaredTargetName;
|
||||
default -> effectiveTargetName = declaredTargetName;
|
||||
}
|
||||
if (effectiveTargetName != null) {
|
||||
final AntDomTarget existingTarget = myTargetsResolveMap.get(effectiveTargetName);
|
||||
|
||||
Reference in New Issue
Block a user