Removed some compiler warnings.

This commit is contained in:
Oliver Gierke
2011-03-23 07:45:43 +01:00
parent ec7d2deca1
commit 4dd1d0198f
7 changed files with 10 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ public class MongoJmxParser implements BeanDefinitionParser {
}
protected void createBeanDefEntry(Class clazz, CompositeComponentDefinition compositeDef, String mongoRefName, Object eleSource, ParserContext parserContext) {
protected void createBeanDefEntry(Class<?> clazz, CompositeComponentDefinition compositeDef, String mongoRefName, Object eleSource, ParserContext parserContext) {
BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(clazz);
builder.getRawBeanDefinition().setSource(eleSource);
builder.addConstructorArgReference(mongoRefName);

View File

@@ -51,6 +51,7 @@ import org.springframework.util.comparator.CompoundComparator;
public class SimpleMongoConverter implements MongoConverter {
private static final Log LOG = LogFactory.getLog(SimpleMongoConverter.class);
@SuppressWarnings("unchecked")
private static final List<Class<?>> MONGO_TYPES = Arrays.asList(Number.class, Date.class, String.class, DBObject.class);
private static final Set<String> SIMPLE_TYPES;

View File

@@ -24,6 +24,7 @@ import org.springframework.context.ApplicationEvent;
*/
public class CollectionCreatedEvent extends ApplicationEvent {
private static final long serialVersionUID = -7258679124450904006L;
private final DBObject options;
public CollectionCreatedEvent(String collection, DBObject options) {

View File

@@ -24,6 +24,7 @@ import org.springframework.context.ApplicationEvent;
*/
public class InsertEvent extends ApplicationEvent {
private static final long serialVersionUID = 8713413423411L;
private final String collection;
public InsertEvent(String collection, DBObject dbo) {

View File

@@ -24,6 +24,7 @@ import org.springframework.context.ApplicationEvent;
*/
public class SaveEvent extends ApplicationEvent {
private static final long serialVersionUID = -5583681211168904206L;
private final String collection;
public SaveEvent(String collection, DBObject source) {

View File

@@ -24,6 +24,8 @@ import org.springframework.context.ApplicationEvent;
*/
public class WriteResultEvent extends ApplicationEvent {
private static final long serialVersionUID = 4460770341573211038L;
public WriteResultEvent(WriteResult result) {
super(result);
}
@@ -31,5 +33,4 @@ public class WriteResultEvent extends ApplicationEvent {
public WriteResult getWriteResult() {
return (WriteResult) source;
}
}

View File

@@ -24,7 +24,8 @@ import org.springframework.data.mapping.model.PersistentEntity;
* @author Jon Brisbin <jbrisbin@vmware.com>
*/
public class MongoMappingEvent<T> extends ApplicationEvent {
private static final long serialVersionUID = 1L;
private final EventType type;
private final PersistentEntity<T> entity;
@@ -43,6 +44,7 @@ public class MongoMappingEvent<T> extends ApplicationEvent {
}
@Override
@SuppressWarnings("unchecked")
public T getSource() {
return (T) super.getSource();
}