Polishing
This commit is contained in:
@@ -55,7 +55,7 @@ public final class ExecutableHint extends MemberHint {
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize a builder with the name and parameters types of a method.
|
||||
* Initialize a builder with the name and parameter types of a method.
|
||||
* @param name the name of the method
|
||||
* @param parameterTypes the parameter types of the method
|
||||
* @return a builder
|
||||
@@ -74,7 +74,7 @@ public final class ExecutableHint extends MemberHint {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the {@linkplain ExecutableMode mode} that apply to this hint.
|
||||
* Return the {@linkplain ExecutableMode mode} that applies to this hint.
|
||||
* @return the mode
|
||||
*/
|
||||
public ExecutableMode getMode() {
|
||||
@@ -116,7 +116,7 @@ public final class ExecutableHint extends MemberHint {
|
||||
*/
|
||||
public Builder withMode(ExecutableMode mode) {
|
||||
Assert.notNull(mode, "'mode' must not be null");
|
||||
if ((this.mode == null || !this.mode.includes(mode))) {
|
||||
if ((this.mode == null) || !this.mode.includes(mode)) {
|
||||
this.mode = mode;
|
||||
}
|
||||
return this;
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.springframework.lang.Nullable;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
* A hint that describes the need of reflection on a {@link Field}.
|
||||
* A hint that describes the need for reflection on a {@link Field}.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
* @since 6.0
|
||||
@@ -52,7 +52,7 @@ public final class FieldHint extends MemberHint {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the {@linkplain FieldMode mode} that apply to this hint.
|
||||
* Return the {@linkplain FieldMode mode} that applies to this hint.
|
||||
* @return the mode
|
||||
*/
|
||||
public FieldMode getMode() {
|
||||
@@ -60,7 +60,7 @@ public final class FieldHint extends MemberHint {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether if using {@code Unsafe} on the field should be allowed.
|
||||
* Return whether using {@code Unsafe} on the field should be allowed.
|
||||
* @return {@code true} to allow unsafe access
|
||||
*/
|
||||
public boolean isAllowUnsafeAccess() {
|
||||
@@ -123,7 +123,7 @@ public final class FieldHint extends MemberHint {
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify if using {@code Unsafe} on the field should be allowed.
|
||||
* Specify whether using {@code Unsafe} on the field should be allowed.
|
||||
* @param allowUnsafeAccess {@code true} to allow unsafe access
|
||||
* @return {@code this}, to facilitate method chaining
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user