Warning message
Generating equals/hashCode implementation but without a call to
superclass, even though this class does not extend java.lang.Object.
If this is intentional, add ‘(callSuper=false)’ to your type.
Baidu translation results:
Generate the equals/hashcode implementation, but do not call the superclass, even if the class does not extend Java. Lang. object. If this is intentional, add “(callsuper = false)” to your type.
terms of settlement
Method 1
Add the @ equalsandhashcode (callsuper = true)
annotation to the class
After adding, you can include the properties of its parent class when generating the equals/hashcode method
Method 2
Add content to the configuration class, but I haven’t used it, so I only recommend a link. The address is: https://www.cnblogs.com/zt007/p/13086238.html
Read More:
- The differences between the equals method in the string class and the equals method in the object class
- the module was loaded but the call to DllRegisterServer failed with error code 0x80020009
- Registering in Windows10 regsvr32 xxx.ocx reported an error but the call to DIIRegisterServer failed with error code 0x80040200…
- “Method does not override method from its superclass”
- Override the equals method and override the toString method
- Method of generating MD5 file checksums under Windows
- Why do we not need to write implementation classes in mybatis to get the objects we need
- Implementation of Python switch / case statements
- Python switch / case statement implementation method
- A method of generating subtitle file for MP3
- Velt-0.1.3 development: generating events
- Msfvenom generating Trojan and connecting
- When generating a test report in HTML format, report [typeerror: a bytes like object is required, not ‘STR’]
- Golong based tool for automatically generating the corresponding struct file according to XML file
- XmlSerialize error: There was an error generating the XML document.
- Implementation of tupledesc and tuple in mit6.830 lab1 / exercise 1
- Several implementation methods of Python timing task
- Error generating Ca in OpenSSL: TXT_ DB error number 2
- How to call stored procedure in Hibernate
- A simple method of generating secret key by GIT and configuring SSH public key