HHH-12720 Deprecate a useless constructor in AbstractSerializableProxy

A no-arg constructor is only necessary for superclasses of serializable
classes that are not themselves serializable. Here the class is
serializable, so the constructor is useless.
This commit is contained in:
Yoann Rodière 2018-07-04 16:12:05 +02:00 committed by Guillaume Smet
parent 41943fb920
commit 415f964a67
1 changed files with 3 additions and 1 deletions

View File

@ -21,8 +21,10 @@ public abstract class AbstractSerializableProxy implements Serializable {
private boolean allowLoadOutsideTransaction;
/**
* For serialization
* @deprecated This constructor was initially intended for serialization only, and is not useful anymore.
* In any case it should not be relied on by user code.
*/
@Deprecated
protected AbstractSerializableProxy() {
}