mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[undo] IJPL-201535 Refactor UndoableActionType
GitOrigin-RevId: 6c86f89bc18fbf04f89466c16c20be3cafe0bd10
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6129982d41
commit
f91dcdab02
+2
-2
@@ -19,7 +19,7 @@ public enum UndoableActionType {
|
||||
MENTION_ONLY,
|
||||
EDITOR_CHANGE,
|
||||
NON_UNDOABLE,
|
||||
RESET_ORIGINATOR,
|
||||
RESET_ORIGINATOR, // TODO: its a hacky way
|
||||
GLOBAL,
|
||||
OTHER,
|
||||
;
|
||||
@@ -67,6 +67,6 @@ public enum UndoableActionType {
|
||||
}
|
||||
|
||||
private static <T> @NotNull T first(@NotNull Collection<T> collection) {
|
||||
return collection.stream().iterator().next();
|
||||
return collection.iterator().next();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user