mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-06 20:15:58 +00:00
[fixes #1064] Only show super()-warning if lombok generates a method
This commit is contained in:
1 parent
3d3a4c322a
commit
191a8011ef
5 files changed
+116
-48
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import lombok.Data;
|
||||
|
||||
class DataWithOverrideEqualsAndHashCode {
|
||||
class Data1 {
|
||||
|
||||
}
|
||||
|
||||
@Data
|
||||
class Data2 extends Data1 {
|
||||
public int hashCode() {
|
||||
return 42;
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user