aboutsummaryrefslogtreecommitdiff
path: root/website/features/GetterSetter.html
diff options
context:
space:
mode:
Diffstat (limited to 'website/features/GetterSetter.html')
-rw-r--r--website/features/GetterSetter.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/website/features/GetterSetter.html b/website/features/GetterSetter.html
index fd4ed17d..8e7a1ede 100644
--- a/website/features/GetterSetter.html
+++ b/website/features/GetterSetter.html
@@ -67,6 +67,9 @@
</p><p>
Using the <code>AccessLevel.NONE</code> access level simply generates nothing. It's useful only in combination with
<a href="Data.html"><code>@Data</code></a> or a class-wide <code>@Getter</code> or <code>@Setter</code>.
+ </p><p>
+ <code>@Getter</code> can also be used on enums. <code>@Setter</code> can't, not for a technical reason, but
+ for a pragmatic one: Setters on enums are an extremely bad idea.
</p>
</div>
</div>