DATACMNS-495 - Prepare 1.8.0.RC1.

Removed compiler warnings (obsolete @SuppressWarnings and obsolete code). Upgraded to Spring HATEOAS 0.11.0.
This commit is contained in:
Oliver Gierke
2014-05-01 20:22:23 +02:00
parent cc9dafbd02
commit 5791e9b201
7 changed files with 5 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013 the original author or authors.
* Copyright 2013-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,6 +34,7 @@ import org.springframework.util.ClassUtils;
*
* @author Oliver Gierke
*/
@SuppressWarnings("deprecation")
public abstract class JodaTimeConverters {
private static final boolean JODA_TIME_IS_PRESENT = ClassUtils.isPresent("org.joda.time.LocalDate", null);

View File

@@ -97,7 +97,6 @@ public class ClassTypeInformation<S> extends TypeDiscoverer<S> {
*
* @param type
*/
@SuppressWarnings("deprecation")
ClassTypeInformation(Class<S> type) {
this(type, GenericTypeResolver.getTypeVariableMap(type));
}

View File

@@ -54,7 +54,6 @@ class ParameterizedTypeInformation<T> extends ParentTypeAwareTypeInformation<T>
* @see org.springframework.data.util.TypeDiscoverer#getMapValueType()
*/
@Override
@SuppressWarnings("deprecation")
public TypeInformation<?> getMapValueType() {
if (Map.class.isAssignableFrom(getType())) {

View File

@@ -94,7 +94,6 @@ class TypeDiscoverer<S> implements TypeInformation<S> {
return new ClassTypeInformation((Class<?>) fieldType);
}
@SuppressWarnings("deprecation")
Map<TypeVariable, Type> variableMap = GenericTypeResolver.getTypeVariableMap(resolveType(fieldType));
if (fieldType instanceof ParameterizedType) {
@@ -136,7 +135,7 @@ class TypeDiscoverer<S> implements TypeInformation<S> {
* @param type
* @return
*/
@SuppressWarnings({ "unchecked", "deprecation" })
@SuppressWarnings("unchecked")
protected Class<S> resolveType(Type type) {
return (Class<S>) GenericTypeResolver.resolveType(type, getTypeVariableMap());
}