You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 18, 2023. It is now read-only.
The goal would be to implement the equivalent of the C# readonly keyword.
The definition of the C# readonly:
"Identifies a field as being read-only. Read-only fields are more flexible than
constants because they can be initialized at declaration or within an instance
constructor. Static read-only fields can be initialized at declaration or
within a static constructor."
The implementation can contain a @Aoplib4jReadOnly annotation; only the fields
can be annotated.
Another idea would be to annotate also the classes and then ALL the fields will
became readonly; the fields that cannot be readonly should be annotated with
@Aoplib4jReaonlyException (it's a good idea ?!)
Original issue reported on code.google.com by adyc...@gmail.com on 22 Jan 2011 at 5:14