@SuppressedWarning cleanups.

This commit is contained in:
Oliver Gierke
2011-03-18 07:59:49 +01:00
parent bea1ed9cbe
commit 5df34cec70
2 changed files with 2 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ public class MappingMongoEntityInformation<T, ID extends Serializable> extends A
/* (non-Javadoc)
* @see org.springframework.data.repository.support.EntityInformation#getId(java.lang.Object)
*/
@SuppressWarnings("unchecked")
public ID getId(T entity) {
PersistentProperty idProperty = entityMetadata.getIdProperty();
@@ -60,6 +61,7 @@ public class MappingMongoEntityInformation<T, ID extends Serializable> extends A
/* (non-Javadoc)
* @see org.springframework.data.repository.support.EntityInformation#getIdType()
*/
@SuppressWarnings("unchecked")
public Class<ID> getIdType() {
return (Class<ID>) entityMetadata.getIdProperty().getType();
}

View File

@@ -39,7 +39,6 @@ class MongoQueryMethod extends QueryMethod {
*
* @param method
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
public MongoQueryMethod(Method method, EntityInformationCreator entityInformationCreator) {
super(method);
this.method = method;