Suppress warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user