Added some @SuppressWarnings where necessary.

This commit is contained in:
Oliver Gierke
2011-03-15 20:39:03 +01:00
parent 8b16502b2a
commit 0492b189af
3 changed files with 3 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ public class MappingMongoConverter implements MongoConverter, ApplicationContext
return conversionService.convert(id, ObjectId.class);
}
@SuppressWarnings({"unchecked"})
@SuppressWarnings({"unchecked", "rawtypes"})
public <S extends Object> S read(Class<S> clazz, final DBObject dbo) {
if (null == dbo) {
return null;

View File

@@ -171,6 +171,7 @@ public class ConvertingParameterAccessor implements ParameterAccessor {
/**
* @return the value
*/
@SuppressWarnings("unused")
public Enum<?> getValue() {
return value;
}

View File

@@ -38,6 +38,7 @@ class MongoQueryMethod extends QueryMethod {
*
* @param method
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
public MongoQueryMethod(Method method, Class<?> domainClass) {
super(method);
this.method = method;