Skip to content

Commit ab82108

Browse files
committed
DATACMNS-681 - Removed some compiler warnings.
Removed unused constants.
1 parent f16f2d8 commit ab82108

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/springframework/data/auditing/AnnotationAuditingMetadata.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2014 the original author or authors.
2+
* Copyright 2012-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -51,7 +51,6 @@ final class AnnotationAuditingMetadata {
5151

5252
private static final Map<Class<?>, AnnotationAuditingMetadata> METADATA_CACHE = new ConcurrentHashMap<Class<?>, AnnotationAuditingMetadata>();
5353

54-
private static final String JDK8_TIME_PACKAGE_PREFIX = "java.time";
5554
public static final boolean IS_JDK_8 = org.springframework.util.ClassUtils.isPresent("java.time.Clock",
5655
AnnotationAuditingMetadata.class.getClassLoader());
5756

src/main/java/org/springframework/data/repository/query/Parameters.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2008-2014 the original author or authors.
2+
* Copyright 2008-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -37,6 +37,7 @@
3737
*/
3838
public abstract class Parameters<S extends Parameters<S, T>, T extends Parameter> implements Iterable<T> {
3939

40+
@SuppressWarnings("unchecked")//
4041
public static final List<Class<?>> TYPES = Arrays.asList(Pageable.class, Sort.class);
4142

4243
private static final String PARAM_ON_SPECIAL = format("You must not user @%s on a parameter typed %s or %s",

0 commit comments

Comments
 (0)