From 42f33aa5f9919b4b670810aaa2c2e9e2d86a5715 Mon Sep 17 00:00:00 2001 From: Mikhail Pyltsin Date: Mon, 4 Aug 2025 17:07:19 +0200 Subject: [PATCH] IJ-MR-171281 [java-inspection] IJ-CR-170128 IDEA-376232 JEP 512: 'safe delete' for 'args' in main method in the compact source file at the first place in the list of suggested quick-fixes - fix conflicts GitOrigin-RevId: 23eacf462635c4ed0068fffb51d6abcab305ffc8 --- .../impl/quickfix/RemoveUnusedParameterMainMethodTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/impl/quickfix/RemoveUnusedParameterMainMethodTest.java b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/impl/quickfix/RemoveUnusedParameterMainMethodTest.java index 3bbe412e9f93..aeb3c7415327 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/impl/quickfix/RemoveUnusedParameterMainMethodTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/impl/quickfix/RemoveUnusedParameterMainMethodTest.java @@ -4,6 +4,7 @@ package com.intellij.codeInsight.daemon.impl.quickfix; import com.intellij.codeInsight.intention.IntentionAction; import com.intellij.codeInspection.InspectionProfileEntry; import com.intellij.codeInspection.deadCode.UnusedDeclarationInspection; +import com.intellij.pom.java.LanguageLevel; import com.intellij.testFramework.LightProjectDescriptor; import com.siyeh.ig.LightJavaInspectionTestCase; import org.jetbrains.annotations.NotNull; @@ -16,7 +17,7 @@ public class RemoveUnusedParameterMainMethodTest extends LightJavaInspectionTest @Override protected @NotNull LightProjectDescriptor getProjectDescriptor() { - return JAVA_25; + return new ProjectDescriptor(LanguageLevel.JDK_25); } @Nullable