If you're using earlier than
Java 1.5, then you'd expect line 14 to throw an error, because you're assigining an
int to an
Integer reference. Autoboxing allows that, but autoboxing was introduced in 1.5.
You do realise that if that line works it's a pointless statement, though?