mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 08:15:48 +00:00
fix css class in documentation
This commit is contained in:
1 parent
28fbff467b
commit
2e35148abe
1 file changed
+1
-1
@@ -84,7 +84,7 @@
|
||||
can be included. We suggest you put this in the root of your workspace directory.
|
||||
</p><p id="addNullAnnotations">
|
||||
Lombok can add nullity annotations (usually called <code>@NonNull</code> and <code>@Nullable</code>) whenever it makes sense to do so; think of generated <a href="ToString"><code>toString</code></a> and <a href="with"><code>withX</code> methods (these never return null), or the parameter of a generated <a href="EqualsAndHashCode"><code>equals</code></a> method, which is allowed to be null, and requires such an annotation if you've set up your IDE for strict null checks as well as 'parameters are non-null by default'. There are many such libraries; you must tell lombok which one to use. By default, no such annotations are added. Enable this feature with:
|
||||
<ol class="snippet example oneLiner">
|
||||
<ol class="snippet example oneliner">
|
||||
<li><code>lombok.addNullAnnotations = <em><flavor></em></code></li>
|
||||
</ol>
|
||||
Many <em>flavors</em> are available: <code>javax</code> (=JSR305; not recommended), <code>eclipse</code>, <code>jetbrains</code>, <code>netbeans</code>, <code>androidx</code>, <code>android.support</code> (deprecated within android), <code>checkerframework</code> (recommended), <code>findbugs</code>, <code>spring</code>, <code>jml</code>, or define your own via <code>CUSTOM:fully.qualified.NonNullAnnotation:fully.qualified.NullableAnnotation</code>; if your nullity annotation is solely of the type use style (it annotates types, such as eclipse's and checkerframework's offerings, versus annotating methods and parameters), the format is <code>CUSTOM:TYPE_USE:nonnullanno:nullableanno</code>.<br />
|
||||
|
||||
Reference in new issue
Block a user