mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
[lombok] ignore implicit constructor usages in generated code (IDEA-300494)
GitOrigin-RevId: bcafd4fbb0f0771ccd46acf7cff9bc23ee3e9130
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c645fa338c
commit
630b9cb64f
@@ -167,7 +167,7 @@ class ConstructorReferencesSearchHelper {
|
||||
}
|
||||
for (PsiMethod method : constructors) {
|
||||
PsiCodeBlock body = method.getBody();
|
||||
if (body == null || method == constructor && isStrictSignatureSearch) {
|
||||
if (body == null || method == constructor && isStrictSignatureSearch || !method.isPhysical()) {
|
||||
continue;
|
||||
}
|
||||
PsiStatement[] statements = body.getStatements();
|
||||
|
||||
@@ -25,4 +25,8 @@ public class RenameClassActionTest extends AbstractLombokLightCodeInsightTestCas
|
||||
public void testLogClassRenamed() throws Exception {
|
||||
doTest("CakeCooked");
|
||||
}
|
||||
|
||||
public void testConstructors() throws Exception {
|
||||
doTest("MyBaseClass1");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import lombok.*;
|
||||
|
||||
@AllArgsConstructor
|
||||
class NewEntity extends MyBaseClass1 {
|
||||
private Long id;
|
||||
public NewEntity() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
abstract class MyBase<caret>Class1 {
|
||||
public MyBaseClass1() {}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import lombok.*;
|
||||
|
||||
@AllArgsConstructor
|
||||
class NewEntity extends MyBaseClass {
|
||||
private Long id;
|
||||
public NewEntity() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
abstract class MyBase<caret>Class {
|
||||
public MyBaseClass() {}
|
||||
}
|
||||
Reference in New Issue
Block a user