Suppress warnings
This commit is contained in:
parent
e653ee60a0
commit
349bcb4364
|
|
@ -208,6 +208,7 @@ public class ReflectionHints {
|
||||||
* @deprecated in favor of {@link #registerConstructor(Constructor, ExecutableMode)}
|
* @deprecated in favor of {@link #registerConstructor(Constructor, ExecutableMode)}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public ReflectionHints registerConstructor(Constructor<?> constructor, Consumer<ExecutableHint.Builder> constructorHint) {
|
public ReflectionHints registerConstructor(Constructor<?> constructor, Consumer<ExecutableHint.Builder> constructorHint) {
|
||||||
return registerType(TypeReference.of(constructor.getDeclaringClass()),
|
return registerType(TypeReference.of(constructor.getDeclaringClass()),
|
||||||
typeHint -> typeHint.withConstructor(mapParameters(constructor), constructorHint));
|
typeHint -> typeHint.withConstructor(mapParameters(constructor), constructorHint));
|
||||||
|
|
@ -245,6 +246,7 @@ public class ReflectionHints {
|
||||||
* @deprecated in favor of {@link #registerMethod(Method, ExecutableMode)}
|
* @deprecated in favor of {@link #registerMethod(Method, ExecutableMode)}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public ReflectionHints registerMethod(Method method, Consumer<ExecutableHint.Builder> methodHint) {
|
public ReflectionHints registerMethod(Method method, Consumer<ExecutableHint.Builder> methodHint) {
|
||||||
return registerType(TypeReference.of(method.getDeclaringClass()),
|
return registerType(TypeReference.of(method.getDeclaringClass()),
|
||||||
typeHint -> typeHint.withMethod(method.getName(), mapParameters(method), methodHint));
|
typeHint -> typeHint.withMethod(method.getName(), mapParameters(method), methodHint));
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,10 @@ public class EmployeeId implements Serializable {
|
||||||
@Serial
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private String department;
|
private String department;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue