mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 12:22:31 +00:00
[fixes #1064] Only show super()-warning if lombok generates a method
This commit is contained in:
@@ -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