Fix MazeModelMessage from object to scalar #30

Closed
opened 2018-01-10 11:27:39 +00:00 by regar42 · 1 comment
Collaborator

Else, even if the reference to the String is final, one can still change the content of the string, which is not really grave, but not desired.

Else, even if the reference to the String is final, one can still change the content of the string, which is not really grave, but not desired.
regar42 self-assigned this 2018-01-10 11:27:39 +00:00
regar42 added the bug label 2018-01-10 11:27:39 +00:00
Author
Collaborator

Actually, String type is immutable.
So one can't change MazeAppModelMessage.MazeRenewal for example.
It's even not possible to make it a scalar, because we send these messages as Objects to the observers.

Actually, String type is immutable. So one can't change `MazeAppModelMessage.MazeRenewal` for example. It's even not possible to make it a scalar, because we send these messages as `Object`s to the observers.
regar42 added invalid and removed bug labels 2018-01-12 21:16:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
-
Dependencies

No dependencies set.

Reference: antograb/TpMazeJava#30