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