Hi Andrej,

thanks for your remarks; see below for a comment.

In addition, I need an upper-case Review, please.

> Am 06.07.2016 um 10:25 schrieb Andrej Golovnin <andrej.golov...@gmail.com>:
> 767         static final long serialVersionUID = -1L; // no serialisation
> 
> Just because you set serialVersionUID to -1L, it does not mean that it
> is not serializable. Either remove the comment "// no serialisation"
> or remove the serialVersionUID at all because you never serialize this
> exception. And btw. serialVersionUID should be private if you decide
> to keep it.

I know that setting the field to -1 does not hinder serialisation. The comment 
was intended to make clear that no serialisation of instances of this class 
will ever happen. I'll make that more clear. Omitting the field is not 
possible; the compiler will complain. Having serialVersionUID is enforced in 
the build.

Best,

Michael

-- 

 <http://www.oracle.com/>
Dr. Michael Haupt | Principal Member of Technical Staff
Phone: +49 331 200 7277 | Fax: +49 331 200 7561
Oracle Java Platform Group | LangTools Team | Nashorn
Oracle Deutschland B.V. & Co. KG | Schiffbauergasse 14 | 14467 Potsdam, Germany

ORACLE Deutschland B.V. & Co. KG | Hauptverwaltung: Riesstraße 25, D-80992 
München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V. | Hertogswetering 163/167, 
3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Nederland, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher
 <http://www.oracle.com/commitment>     Oracle is committed to developing 
practices and products that help protect the environment

Reply via email to