mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 02:14:44 +00:00
Fix typos
This commit is contained in:
1 parent
91a511bbb7
commit
ce685ec169
8 files changed
+8
-8
No files matched your search
@@ -232,7 +232,7 @@ Lombok Changelog
|
||||
* FEATURE: A `lombok.config` key can now be used to make your fields `final` and/or `private`... __everywhere__. We'll be monitoring the performance impact of this for a while. We'll touch every source file if you turn these on, and even if you don't, we have to call into the lombok config system for every file.
|
||||
* FEATURE: A `lombok.config` key can now be used to set the default behaviour of `@EqualsAndHashCode` when generating methods for a class that extends something in regards to calling the superclass implementations of `equals` and `hashCode` or not. [Issue #965](https://github.com/projectlombok/lombok/issues/965).
|
||||
* FEATURE: Putting `@Wither` on abstract classes now generates something slightly more useful: An abstract wither method. [Issue #945](https://github.com/projectlombok/lombok/issues/945).
|
||||
* BUGFIX: `@Helper` used to only be be legal in pretty specific places; now it works just about everywhere.
|
||||
* BUGFIX: `@Helper` used to only be legal in pretty specific places; now it works just about everywhere.
|
||||
* BUGFIX: lambdas with 1 argument that has an explicit type did not pretty print correctly. [Issue #972](https://github.com/projectlombok/lombok/issues/972).
|
||||
* BUGFIX: When using delombok, a source file with only `@NonNull` annotations on parameters as lombok feature would not get properly delomboked. [Issue #950](https://github.com/projectlombok/lombok/issues/950).
|
||||
* BUGFIX: `@Delegate` in javac would generate arrays instead of varargs parameters. [Issue #932](https://github.com/projectlombok/lombok/issues/932).
|
||||
|
||||
@@ -160,7 +160,7 @@ public @interface Builder {
|
||||
* For example, a method normally generated as {@code someField(String someField)} would instead be
|
||||
* generated as {@code withSomeField(String someField)} if using {@code @Builder(setterPrefix = "with")}.
|
||||
*
|
||||
* Note that using "with" to prefix builder setter methods is strongly discouraged as as "with" normally
|
||||
* Note that using "with" to prefix builder setter methods is strongly discouraged as "with" normally
|
||||
* suggests immutable data structures, and builders by definition are mutable objects.
|
||||
*
|
||||
* For {@code @Singular} fields, the generated methods are called {@code withName}, {@code withNames}, and {@code clearNames}, instead of
|
||||
|
||||
@@ -75,7 +75,7 @@ public @interface NoArgsConstructor {
|
||||
* If {@code true}, initializes all final fields to 0 / null / false.
|
||||
* Otherwise, a compile time error occurs.
|
||||
*
|
||||
* @return Return {@code} true to force generation of a no-args constructor, picking defaults if necessary to assign required fields.
|
||||
* @return {@code} true to force generation of a no-args constructor, picking defaults if necessary to assign required fields.
|
||||
*/
|
||||
boolean force() default false;
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ public class HandleFieldDefaults extends EclipseASTAdapter {
|
||||
boolean defaultToFinal = makeFinalIsExplicit ? false : Boolean.TRUE.equals(typeNode.getAst().readConfiguration(ConfigurationKeys.FIELD_DEFAULTS_FINAL_EVERYWHERE));
|
||||
|
||||
if (!defaultToPrivate && !defaultToFinal && fieldDefaults == null) return;
|
||||
// Do not apply field defaults to records if set using the the config system
|
||||
// Do not apply field defaults to records if set using the config system
|
||||
if (fieldDefaults == null && !isClassOrEnum(typeNode)) return;
|
||||
AccessLevel fdAccessLevel = (fieldDefaults != null && levelIsExplicit) ? fd.level() : defaultToPrivate ? AccessLevel.PRIVATE : null;
|
||||
boolean fdToFinal = (fieldDefaults != null && makeFinalIsExplicit) ? fd.makeFinal() : defaultToFinal;
|
||||
|
||||
@@ -69,7 +69,7 @@ public @interface SuperBuilder {
|
||||
* For example, a method normally generated as {@code someField(String someField)} would instead be
|
||||
* generated as {@code withSomeField(String someField)} if using {@code @SuperBuilder(setterPrefix = "with")}.
|
||||
*
|
||||
* Note that using "with" to prefix builder setter methods is strongly discouraged as as "with" normally
|
||||
* Note that using "with" to prefix builder setter methods is strongly discouraged as "with" normally
|
||||
* suggests immutable data structures, and builders by definition are mutable objects.
|
||||
*
|
||||
* For {@code @Singular} fields, the generated methods are called {@code withName}, {@code withNames}, and {@code clearNames}, instead of
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ import lombok.experimental.SuperBuilder;
|
||||
* <li>Insert {@code @JsonPOJOBuilder(withPrefix="")} on the generated builder
|
||||
* class to override Jackson's default prefix "with". If you configured a
|
||||
* different prefix in lombok using {@code setterPrefix}, this value is used. If
|
||||
* you changed the name of the {@code build()} method using using
|
||||
* you changed the name of the {@code build()} method using
|
||||
* {@code buildMethodName}, this is also made known to Jackson.</li>
|
||||
* <li>For {@code @SuperBuilder}, make the builder implementation class
|
||||
* package-private.</li>
|
||||
|
||||
@@ -140,7 +140,7 @@ public class HandleFieldDefaults extends JavacASTAdapter {
|
||||
boolean defaultToFinal = makeFinalIsExplicit ? false : Boolean.TRUE.equals(typeNode.getAst().readConfiguration(ConfigurationKeys.FIELD_DEFAULTS_FINAL_EVERYWHERE));
|
||||
|
||||
if (!defaultToPrivate && !defaultToFinal && fieldDefaults == null) return;
|
||||
// Do not apply field defaults to records if set using the the config system
|
||||
// Do not apply field defaults to records if set using the config system
|
||||
if (fieldDefaults == null && !isClassOrEnum(typeNode)) return;
|
||||
AccessLevel fdAccessLevel = (fieldDefaults != null && levelIsExplicit) ? fd.level() : defaultToPrivate ? AccessLevel.PRIVATE : null;
|
||||
boolean fdToFinal = (fieldDefaults != null && makeFinalIsExplicit) ? fd.makeFinal() : defaultToFinal;
|
||||
|
||||
@@ -40,7 +40,7 @@ public class JacksonExample {
|
||||
</li><li>
|
||||
Insert <code>@JsonPOJOBuilder(withPrefix="")</code> on the generated builder class to override Jackson's default prefix "with".
|
||||
If you configured a different prefix in lombok using <code>setterPrefix</code>, this value is used.
|
||||
If you changed the name of the <code>build()</code> method using using <code>buildMethodName</code>, this is also made known to Jackson.
|
||||
If you changed the name of the <code>build()</code> method using <code>buildMethodName</code>, this is also made known to Jackson.
|
||||
</li><li>
|
||||
For <code>@SuperBuilder</code>, make the builder implementation class package-private.
|
||||
</li>
|
||||
|
||||
Reference in new issue
Block a user