mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[java] don't group "Create from usage" fixes in tests
This commit is contained in:
@@ -3,8 +3,12 @@ package com.intellij.lang.jvm.actions
|
||||
|
||||
import com.intellij.codeInsight.intention.IntentionAction
|
||||
import com.intellij.lang.java.JavaLanguage
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
|
||||
internal fun List<IntentionAction>.groupActionsByType(): List<IntentionAction> {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode) {
|
||||
return this
|
||||
}
|
||||
val groupableActions = filterIsInstance<JvmGroupIntentionAction>()
|
||||
val result = minus(groupableActions).toMutableList()
|
||||
val typeActions = groupableActions.groupBy { it.actionGroup }
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create method 'f'" "true"
|
||||
// "Create method 'f' in 'Nested" "true"
|
||||
public class CreateMethodTest {
|
||||
public <T> void aMethod(final T t) {
|
||||
class Nested {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create method 'f'" "true"
|
||||
// "Create method 'f' in 'Nested" "true"
|
||||
public class CreateMethodTest {
|
||||
public <T> void aMethod(final T t) {
|
||||
class Nested {
|
||||
|
||||
Reference in New Issue
Block a user