Skip to content

Commit 349bcb4

Browse files
committed
Suppress warnings
1 parent e653ee6 commit 349bcb4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

spring-core/src/main/java/org/springframework/aot/hint/ReflectionHints.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ public ReflectionHints registerConstructor(Constructor<?> constructor, Executabl
208208
* @deprecated in favor of {@link #registerConstructor(Constructor, ExecutableMode)}
209209
*/
210210
@Deprecated
211+
@SuppressWarnings("deprecation")
211212
public ReflectionHints registerConstructor(Constructor<?> constructor, Consumer<ExecutableHint.Builder> constructorHint) {
212213
return registerType(TypeReference.of(constructor.getDeclaringClass()),
213214
typeHint -> typeHint.withConstructor(mapParameters(constructor), constructorHint));
@@ -245,6 +246,7 @@ public ReflectionHints registerMethod(Method method, ExecutableMode mode) {
245246
* @deprecated in favor of {@link #registerMethod(Method, ExecutableMode)}
246247
*/
247248
@Deprecated
249+
@SuppressWarnings("deprecation")
248250
public ReflectionHints registerMethod(Method method, Consumer<ExecutableHint.Builder> methodHint) {
249251
return registerType(TypeReference.of(method.getDeclaringClass()),
250252
typeHint -> typeHint.withMethod(method.getName(), mapParameters(method), methodHint));

spring-orm/src/test/java/org/springframework/orm/jpa/domain/EmployeeId.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ public class EmployeeId implements Serializable {
2424
@Serial
2525
private static final long serialVersionUID = 1L;
2626

27+
@SuppressWarnings("unused")
2728
private String name;
29+
30+
@SuppressWarnings("unused")
2831
private String department;
32+
2933
}

0 commit comments

Comments
 (0)