mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 22:17:41 +00:00
Don't wrap code in documentation
This commit is contained in:
1 parent
e78fa98daa
commit
9433db4ecd
2 files changed
+3
-1
No files matched your search
@@ -31,7 +31,7 @@
|
||||
those parameters.
|
||||
</p><p>
|
||||
Each of these annotations allows an alternate form, where the generated constructor is always private, and an additional static factory method that wraps around the
|
||||
private constructor is generated. This mode is enabled by supplying the <code>staticName</code> value for the annotation, like so: <code>@RequiredArgsConstructor(staticName = "of")</code>.
|
||||
private constructor is generated. This mode is enabled by supplying the <code>staticName</code> value for the annotation, like so: <code>@RequiredArgsConstructor(staticName="of")</code>.
|
||||
Such a static factory method will infer generics, unlike a normal constructor. This means your API users get write <code>MapEntry.of("foo", 5)</code> instead of the much longer
|
||||
<code>new MapEntry<String, Integer>("foo", 5)</code>.
|
||||
</p><p>
|
||||
|
||||
@@ -75,6 +75,7 @@ dd {
|
||||
|
||||
.overview code {
|
||||
font-size: 1.1em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.smallprint {
|
||||
@@ -84,6 +85,7 @@ dd {
|
||||
|
||||
.smallprint code {
|
||||
font-size: 1em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.snippets {
|
||||
|
||||
Reference in new issue
Block a user