Inspectopedia Help

'Externalizable' class without 'public' no-arg constructor

Reports Externalizable classes without a public no-argument constructor.

When an Externalizable object is reconstructed, an instance is created using the public no-arg constructor before the readExternal method called. If a public no-arg constructor is not available, a will be thrown at runtime.

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.16690

Last modified: 29 April 2024