mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-inspections] revert accidental change to CovertToRecord formatting
GitOrigin-RevId: 7fda646f4c685d9126160d8734a941afc1c3990a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7868936598
commit
ab5a3d0613
+10
-6
@@ -403,8 +403,9 @@ public final class ConvertToRecordFix implements LocalQuickFix {
|
||||
}
|
||||
|
||||
final Set<PsiStatement> otherStatements = new HashSet<>(bodyProcessor.getOtherStatements());
|
||||
return new RecordConstructorCandidate(type, constructorMethod, bodyProcessor.getParamsToFields(),
|
||||
bodyProcessor.getFieldNamesToInitializers(), otherStatements);
|
||||
return new RecordConstructorCandidate(
|
||||
type, constructorMethod, bodyProcessor.getParamsToFields(), bodyProcessor.getFieldNamesToInitializers(), otherStatements
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -412,10 +413,13 @@ public final class ConvertToRecordFix implements LocalQuickFix {
|
||||
* Encapsulates information about converting of a single constructor, for example, whether it is canonical or not.
|
||||
*/
|
||||
@NotNullByDefault
|
||||
record RecordConstructorCandidate(Kind kind, PsiMethod constructor, Map<PsiParameter, @Nullable PsiField> paramsToFields,
|
||||
LinkedHashMap<String, PsiExpression> fieldNamesToInitializers,
|
||||
// TODO(bartekpacia): change type to SequencedMap once we move to Java 21
|
||||
Set<PsiStatement> otherStatements) {
|
||||
record RecordConstructorCandidate(
|
||||
Kind kind,
|
||||
PsiMethod constructor,
|
||||
Map<PsiParameter, @Nullable PsiField> paramsToFields,
|
||||
LinkedHashMap<String, PsiExpression> fieldNamesToInitializers, // TODO(bartekpacia): change type to SequencedMap once we move to Java 21
|
||||
Set<PsiStatement> otherStatements
|
||||
) {
|
||||
|
||||
/// The "kind" of record constructor that [#constructor] will take after being converted to a record (if at all).
|
||||
enum Kind {
|
||||
|
||||
Reference in New Issue
Block a user